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:
commit
e5c4a10673
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user