summaryrefslogtreecommitdiff
path: root/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>2015-07-05 14:19:16 -0400
commit7df62d3a00d5345369ea5ccb2d410fa970f4bebe (patch)
treead88f9d0ffd5e4e82a40e524671e7e653d9b0665 /systemd
parentd21d05648df0093f77363fe891bdb2cc11d036e0 (diff)
downloadpython-systemd-7df62d3a00d5345369ea5ccb2d410fa970f4bebe.tar.gz
systemd-python: Journal convert_unicode exception handling change
Rather than catch all, is now limited to UnicodeDecodeError
Diffstat (limited to 'systemd')
-rw-r--r--systemd/journal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/journal.py b/systemd/journal.py
index d61c30e..5c5f5ca 100644
--- a/systemd/journal.py
+++ b/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