mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
parent
30a69d6e37
commit
213f1f6f10
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ def command_complete(url, params, headers, section):
|
||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
return r.json()['state']
|
return r.json()['status']
|
||||||
except (ValueError, KeyError):
|
except (ValueError, KeyError):
|
||||||
# ValueError catches simplejson's JSONDecodeError and json's ValueError
|
# ValueError catches simplejson's JSONDecodeError and json's ValueError
|
||||||
logger.error('{0} did not return expected json data.'.format(section), section)
|
logger.error('{0} did not return expected json data.'.format(section), section)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue