systemd-python: Journal convert_unicode exception handling change
Rather than catch all, is now limited to UnicodeDecodeError
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
89d9a23389
commit
eccc9e74d2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user