don't fail if title is missing

This commit is contained in:
j 2024-01-23 23:09:43 +01:00
parent bf68d370ef
commit 5ad5fc0798

View file

@ -314,7 +314,7 @@ class Match(models.Model):
@classmethod
def get_keys(cls, data):
data = {
'title': normalize_value(data['title'].lower()),
'title': normalize_value(data.get('title', "").lower()),
'year': str(data.get('year', '')),
'director': normalize_value(';'.join(sorted(data.get('director', []))))
}