Skip to content

Commit

Permalink
Replace deprecated log.warn() but the correct log.warning()
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Yves Chibon <[email protected]>
  • Loading branch information
pypingou authored and mergify[bot] committed Aug 15, 2018
1 parent b55fa45 commit 31c1081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bodhi/server/views/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def exception_view(exc, request):
if status not in (404, 403):
log.exception("Error caught. Handling HTML response.")
else:
log.warn(str(exc))
log.warning(str(exc))

if not len(errors):
description = getattr(exc, 'explanation', None) or str(exc)
Expand Down

0 comments on commit 31c1081

Please sign in to comment.