Skip to content

Commit

Permalink
#184: Fix G200 from flake8-logging-format
Browse files Browse the repository at this point in the history
- This linting status code is regarding passing an exception object directly into log.exception()
  • Loading branch information
MRichards99 committed Nov 5, 2020
1 parent de6255d commit af816bf
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)
log.exception(*e.args)
raise e
except ValueError as e:
log.exception(e)
log.exception(*e.args)
raise BadRequestError()
except TypeError as e:
log.exception(e)
log.exception(*e.args)
raise BadRequestError()
except IntegrityError as e:
log.exception(e)
log.exception(*e.args)
raise BadRequestError()

return wrapper_gets_records
Expand Down

0 comments on commit af816bf

Please sign in to comment.