RikiBorders / Rift-Watcher

Data-Driven League of Legend's Statistics Website
https://rift-watcher.vercel.app
1 stars 0 forks source link

get_summoner_profiles_from_match sometime throws a key error for match['info'] #8

Closed RikiBorders closed 1 year ago

RikiBorders commented 1 year ago

This issue is likely related to some sort of invalid response coming thru the workflow for getting summoner stats. Best to find a way to handle these errors before they can get through the pipeline.

The following code snippet from the get_summoner_profiles_from_match function:

    if not match['info']: 
        print('ISSUE:')
        print(match)

Is a debugging bandaid. Should point us in the right direction