Merge lp:~maxiberta/launchpad/sshkeyadditionerror-msg-format2 into lp:launchpad
Status: | Merged |
---|---|
Merged at revision: | 18693 |
Proposed branch: | lp:~maxiberta/launchpad/sshkeyadditionerror-msg-format2 |
Merge into: | lp:launchpad |
Diff against target: |
46 lines (+4/-4) 3 files modified
lib/lp/registry/interfaces/ssh.py (+2/-1) lib/lp/registry/tests/test_ssh.py (+1/-1) lib/lp/testing/__init__.py (+1/-2) |
To merge this branch: | bzr merge lp:~maxiberta/launchpad/sshkeyadditionerror-msg-format2 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Review via email: mp+348473@code.launchpad.net |
Commit message
Fix encoding error message when handling SSHKeyAdditionE
Description of the change
Further encode error message when handling SSHKeyAdditionE
UnicodeEncode
Traceback (most recent call last):
Module zope.app.
body = mapply(view, (), request)
Module zope.publisher.
return debug_call(obj, args)
- __traceback_info__: <lazr.restful.
Module zope.publisher.
return obj(*args)
Module lazr.restful.error, line 78, in __call__
result = [str(self.context)]
UnicodeEncodeError: 'ascii' codec can't encode character u'\xc7' in position 67: ordinal not in range(128)