Skip to content

Commit

Permalink
better error handling and remove traceback logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelMWS committed Oct 16, 2024
1 parent cbebf0c commit e0bb8d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prom2teams/app/versions/v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def default_error_handler(e):
return {'message': msg}, 400
elif isinstance(e, KeyError):
# For KeyError, set a specific message and return a 400 Bad Request code
msg = 'Missing required data.'
msg = 'Missing required data or missing Connector.'
return {'message': msg}, 400
else:
# Generic response for other unhandled exceptions
Expand Down

0 comments on commit e0bb8d3

Please sign in to comment.