#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_keys = content.json()['MediaContainer']['Directory']
|
||||||
ratings_lst = [x['title'] for x in ratings_keys]
|
ratings_lst = [x['title'] for x in ratings_keys]
|
||||||
return ratings_lst
|
return ratings_lst
|
||||||
except KeyError:
|
except Exception:
|
||||||
print("Unable to pull ratings from section ID: {}.")
|
print("Unable to pull ratings from section ID: {}.".format(section_id))
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user