Skip to content

Commit

Permalink
update exception syntax in capturesESExceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry committed Sep 12, 2021
1 parent 24457ed commit febc54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biothings/web/query/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def _(*args, **kwargs):
# the individual components raising the error should instead
# rasie exceptions like ValueError and TypeError for bad input
logging.error("FIXME: Unexpected Assertion Error.")
raise QueryPipelineException(data=str(exc))
raise QueryPipelineException(500, str(exc))

except (ValueError, TypeError) as exc:
raise QueryPipelineException(400, type(exc).__name__, str(exc))
Expand Down

0 comments on commit febc54f

Please sign in to comment.