Skip to content

Commit

Permalink
Merge branch 'feature/fix-code-linting-#184' into feature/test-multip…
Browse files Browse the repository at this point in the history
…le-backends-#150
  • Loading branch information
MRichards99 committed Nov 9, 2020
2 parents 29f8111 + b752c85 commit b655de1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions datagateway_api/common/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ def wrapper_gets_records(*args, **kwargs):
try:
return method(*args, **kwargs)
except ApiError as e:
log.exception(*e.args)
log.exception(msg=e.args)
raise e
except ValueError as e:
log.exception(*e.args)
log.exception(msg=e.args)
raise BadRequestError()
except TypeError as e:
log.exception(*e.args)
log.exception(e.args)
raise BadRequestError()
except IntegrityError as e:
log.exception(*e.args)
log.exception(e.args)
raise BadRequestError()

return wrapper_gets_records
Expand Down

0 comments on commit b655de1

Please sign in to comment.