-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce unicode in transaction note #52
Enforce unicode in transaction note #52
Conversation
@@ -94,7 +94,7 @@ def tm_tween(request): | |||
try: | |||
t.note(text_(request.path_info)) | |||
except UnicodeDecodeError: | |||
t.note("Unable to decode path as unicode") | |||
t.note(text_("Unable to decode path as unicode")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can probably just use u"Unable to decode path as unicode"
or from __future__ import unicode_literals
at the begining of the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The u''
is fine. Can someone submit a PR (with a test) and I will cut a release. Otherwise you need to wait for me to find some time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a PR right? We will update it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sorry I just woke up.... This is fine, no need to update it. I thought this commit was from my previous attempt at fixing the issues.
@@ -94,7 +94,7 @@ def tm_tween(request): | |||
try: | |||
t.note(text_(request.path_info)) | |||
except UnicodeDecodeError: | |||
t.note("Unable to decode path as unicode") | |||
t.note(text_("Unable to decode path as unicode")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sorry I just woke up.... This is fine, no need to update it. I thought this commit was from my previous attempt at fixing the issues.
Okay just released 1.1.1. Thanks for the quick PR! |
It looks like something was left over for #49. Without this fix I was having this error: