mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 06:13:19 -07:00
Fix unicode check in Py2 #1725
This commit is contained in:
parent
c037387fc3
commit
b393c72c80
1 changed files with 5 additions and 1 deletions
|
@ -28,7 +28,11 @@ def api_check(r, params, rem_params):
|
||||||
logger.debug('Response received: {}'.format(json_data))
|
logger.debug('Response received: {}'.format(json_data))
|
||||||
raise
|
raise
|
||||||
else:
|
else:
|
||||||
if isinstance(json_data, str):
|
if six.PY3:
|
||||||
|
str_type = (str)
|
||||||
|
else:
|
||||||
|
str_type = (str, unicode)
|
||||||
|
if isinstance(json_data, str_type):
|
||||||
return rem_params, False
|
return rem_params, False
|
||||||
json_data = json_data.get('data', json_data)
|
json_data = json_data.get('data', json_data)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue