1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-25 11:42:12 +01:00

Merge branch 'dont_decode_None' of https://github.com/lethliel/osc

Do not try to decode None in decode_it (in this case None is returned).
This commit is contained in:
Marcus Huewe 2019-07-26 14:35:03 +02:00
commit e5c4a10673

View File

@ -54,7 +54,7 @@ def decode_it(obj):
based on the chardet module if possible
"""
if isinstance(obj, str):
if obj is None or isinstance(obj, str):
return obj
else:
try: