Skip to content

Commit

Permalink
debug: add better error message for task create in etl pipeline post
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Nov 29, 2023
1 parent 303f725 commit fe370a4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/api/src/backend/services/TaskService.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,14 @@ def create(self, pipeline, request):
except (IntegrityError, OperationalError, DatabaseError) as e:
self.rollback()
raise e

except BadRequestError as e:
self.rollback()
raise e

except ModelValidationError as e:
self.rollback()
raise e

except Exception as e:
print("Generic Exception", request.id, flush=True)
print(f"Generic Exception: {e}", request.id, flush=True)
raise e

return task
Expand Down

0 comments on commit fe370a4

Please sign in to comment.