systemd-python: Journal convert_unicode exception handling change

Rather than catch all, is now limited to UnicodeDecodeError
This commit is contained in:
Steven Hiscocks
2013-02-22 16:57:44 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent 89d9a23389
commit eccc9e74d2
+1 -1
View 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