remove debugging catch

This commit is contained in:
Sarah 2022-02-20 21:31:02 +00:00
parent b181f15d11
commit 679d1429f3
1 changed files with 2 additions and 6 deletions

View File

@ -42,12 +42,8 @@ def filter_viewings(viewings, pivot_field, remove_duplicates=True):
for viewing in viewings:
viewing_field = viewing[pivot_field]
if viewing_field in viewings_filtered.keys():
try:
if not remove_duplicates or (remove_duplicates and not any(x['imdb_id'] == viewing['imdb_id'] for x in viewings_filtered[viewing_field])):
viewings_filtered[viewing_field] += [viewing]
except KeyError as e:
print(e)
print(viewing)
else:
viewings_filtered[viewing[pivot_field]] = [viewing]