mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
fix return for incorrect command.
This commit is contained in:
parent
a233db0024
commit
4facc36e3f
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,9 @@ def api_check(r, params, rem_params):
|
||||||
logger.debug('Response received')
|
logger.debug('Response received')
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
if isinstance(json_data, str):
|
||||||
|
return rem_params, False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
json_data = json_data['data']
|
json_data = json_data['data']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue