chiark / gitweb /
systemd-python: Journal convert_unicode exception handling change
[elogind.git] / src / python-systemd / journal.py
index d61c30e..5c5f5ca 100644 (file)
@@ -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