#210 expand exception to anything

actually report the offending section id
This commit is contained in:
blacktwin 2020-03-16 10:34:55 -04:00
parent 86b471b5d2
commit 8ad42fb3e7

View File

@ -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