diff options
author | Steven Hiscocks <steven@hiscocks.me.uk> | 2013-02-19 20:37:55 +0000 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-02-22 16:57:44 +0100 |
commit | eccc9e74d2258e094882614db39bce9d7d1c9510 (patch) | |
tree | 81f04d07a15e2ce6ea2e70fee0d1068c548b5656 | |
parent | 89d9a233890a11eb4e6bd3960fff20d8a5afd8ae (diff) |
systemd-python: Journal convert_unicode exception handling change
Rather than catch all, is now limited to UnicodeDecodeError
-rw-r--r-- | src/python-systemd/journal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python-systemd/journal.py b/src/python-systemd/journal.py index d61c30e124..5c5f5ca05b 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 |