Skip to content

Commit

Permalink
Avoid internal server error when user ids are string (#4377)
Browse files Browse the repository at this point in the history
Avoid internal server error when user ids are string
  • Loading branch information
jwkaltz committed Dec 4, 2018
1 parent d6ac224 commit 09fc819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2cgeoportal/views/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ def logout(self):
log.info("Logout on non login user.")
raise HTTPBadRequest("See server logs for details")

log.info(u"User '{0!s}' ({1:d}) logging out.".format(
log.info(u"User '{}' ({}) logging out.".format(
self.request.user.username,
self.request.user.id
))
Expand Down

0 comments on commit 09fc819

Please sign in to comment.