From eccc9e74d2258e094882614db39bce9d7d1c9510 Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Tue, 19 Feb 2013 20:37:55 +0000 Subject: systemd-python: Journal convert_unicode exception handling change Rather than catch all, is now limited to UnicodeDecodeError --- src/python-systemd/journal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/python-systemd/journal.py') 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 -- cgit v1.2.3-54-g00ecf