#210 expand exception to anything
actually report the offending section id
This commit is contained in:
parent
86b471b5d2
commit
8ad42fb3e7
@ -159,8 +159,8 @@ def get_ratings_lst(section_id):
|
||||
ratings_keys = content.json()['MediaContainer']['Directory']
|
||||
ratings_lst = [x['title'] for x in ratings_keys]
|
||||
return ratings_lst
|
||||
except KeyError:
|
||||
print("Unable to pull ratings from section ID: {}.")
|
||||
except Exception:
|
||||
print("Unable to pull ratings from section ID: {}.".format(section_id))
|
||||
pass
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user