Skip to content

Commit

Permalink
remove redundant json.loads #1671
Browse files Browse the repository at this point in the history
  • Loading branch information
clinton-hall committed Dec 3, 2019
1 parent 0d7c59f commit df7f996
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/auto_process/movies.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,7 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual',
elif section == 'Radarr':
logger.postprocess('Radarr response: {0}'.format(result['state']))
try:
res = json.loads(r.content)
scan_id = int(res['id'])
scan_id = int(result['id'])
logger.debug('Scan started with id: {0}'.format(scan_id), section)
except Exception as e:
logger.warning('No scan id was returned due to: {0}'.format(e), section)
Expand Down

0 comments on commit df7f996

Please sign in to comment.