Adman1020 / Elsewherr

85 stars 10 forks source link

KeyError: 'results' #11

Open jaum20 opened 1 year ago

jaum20 commented 1 year ago

getting this error when running the elsewherr.py script

File "/home/user/Elsewherr/./elsewherr.py", line 79, in <module>
    logging.debug(f'Total Providers: {len(tmdbProviders["results"])}')
KeyError: 'results'

the value of tmdbProviders is:

{'success': False, 'status_code': 34, 'status_message': 'The resource you requested could not be found.'}

commenting line 79 makes it work

MikeFalcor commented 10 months ago

Seconded! And I did the same as above - Commented out line 79.