Merge lp:~jameinel/hydrazine/bug_612641_encoding into lp:hydrazine
Proposed by
John A Meinel
Status: | Merged |
---|---|
Approved by: | Martin Pool |
Approved revision: | 78 |
Merged at revision: | 85 |
Proposed branch: | lp:~jameinel/hydrazine/bug_612641_encoding |
Merge into: | lp:hydrazine |
Diff against target: |
17 lines (+6/-1) 1 file modified
feed-pqm (+6/-1) |
To merge this branch: | bzr merge lp:~jameinel/hydrazine/bug_612641_encoding |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
hydrazine-core | Pending | ||
Review via email: mp+37317@code.launchpad.net |
Commit message
Encode to ascii if we can't print the comment normally.
Description of the change
An attempt to avoid encoding failures crashing feed-pqm completely.
Ideally we'd do something based on sys.stdout.encoding or whatever. But since we are just doing "print", I just did the easy hack.
To post a comment you must log in.
I think this if fine as a stop-script- throwing- so-I-can- work hack. As a proper fix, how about using the bzr ui object rather than print as I had to init it anyway to get password promting working earlier?