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://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=eccc9e74d2258e094882614db39bce9d7d1c9510;hp=89d9a233890a11eb4e6bd3960fff20d8a5afd8ae 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 d61c30e12..5c5f5ca05 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