mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 14:13:33 -07:00
Fix jdata may be referenced before assignment
This commit is contained in:
parent
5b83d6c22e
commit
b494da02bb
1 changed files with 4 additions and 1 deletions
|
@ -160,8 +160,11 @@ class PyMedusaApiV2(SickBeard):
|
||||||
except ValueError:
|
except ValueError:
|
||||||
logger.debug('No data returned from provider')
|
logger.debug('No data returned from provider')
|
||||||
return False
|
return False
|
||||||
|
else:
|
||||||
|
jdata = {}
|
||||||
|
|
||||||
if not jdata.get('status') or not jdata['status'] == 'success':
|
status = jdata.get('status', None)
|
||||||
|
if status != 'success':
|
||||||
return False
|
return False
|
||||||
|
|
||||||
queueitem_identifier = jdata['queueItem']['identifier']
|
queueitem_identifier = jdata['queueItem']['identifier']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue