From: Steven Hiscocks Date: Tue, 19 Feb 2013 20:37:55 +0000 (+0000) Subject: systemd-python: Journal convert_unicode exception handling change X-Git-Tag: v198~140^2~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eccc9e74d2258e094882614db39bce9d7d1c9510;p=thirdparty%2Fsystemd.git systemd-python: Journal convert_unicode exception handling change Rather than catch all, is now limited to UnicodeDecodeError --- diff --git a/src/python-systemd/journal.py b/src/python-systemd/journal.py index d61c30e1244..5c5f5ca05b5 100644 --- a/src/python-systemd/journal.py +++ b/src/python-systemd/journal.py @@ -113,7 +113,7 @@ class Journal(_Journal): # Default conversion in unicode try: result = _convert_unicode(value) - except: + except UnicodeDecodeError: # Leave in default bytes result = value return result