summaryrefslogtreecommitdiff
path: root/src/python-systemd
diff options
context:
space:
mode:
authorSteven Hiscocks <steven@hiscocks.me.uk>2013-02-19 20:37:55 +0000
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-02-22 16:57:44 +0100
commiteccc9e74d2258e094882614db39bce9d7d1c9510 (patch)
tree81f04d07a15e2ce6ea2e70fee0d1068c548b5656 /src/python-systemd
parent89d9a233890a11eb4e6bd3960fff20d8a5afd8ae (diff)
systemd-python: Journal convert_unicode exception handling change
Rather than catch all, is now limited to UnicodeDecodeError
Diffstat (limited to 'src/python-systemd')
-rw-r--r--src/python-systemd/journal.py2
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