def get_task_type_raw(task_type_id):
try:
task_type = TaskType.get(task_type_id)
except StatementError:
raise TaskTypeNotFoundException()
if task_type is None:
raise TaskTypeNotFoundException()
return task_type