Skip to content

Commit

Permalink
Avoid passing unicode to logging.warning()
Browse files Browse the repository at this point in the history
Fixes #8.
  • Loading branch information
mgedmin committed Jun 27, 2019
1 parent 5a1e7d0 commit d16bc8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zope/app/publication/zopepublication.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def handleException(self, object, request, exc_info, retry_allowed=True):
transaction.interfaces.TransientError):
tryToLogWarning(
'ZopePublication',
'Competing writes/reads at %s: %s'
'Competing writes/reads at %r: %s'
% (request.get('PATH_INFO', '???'),
exc_info[1],
),
Expand Down

0 comments on commit d16bc8b

Please sign in to comment.