Code review comment for lp:~brunonova/software-properties/lp1381050_2

Revision history for this message
Bruno Nova (brunonova) wrote :

I've added a commit.

The "try:" line was moved to the top, putting the entire body of the method inside of a try...except block.
That way, when this encoding exception is raised, the GUI will report an error (it wasn't doing this).
Though it will also probably suppress exception tracebacks in the console/log.

I did nothing to try to fix the error that Brian reported, and I don't think I can fix it.

But it works for me at least! So, if someone else other than me confirms that this fix works for them, maybe the fix should be accepted (and a new bug opened for that error)?
A partial fix is better than no fix (usually), and I don't think there is regression potential. Except maybe if the system has no UTF-8 support and locales (can that happen?).

« Back to merge proposal