don't fail if title is missing
This commit is contained in:
parent
bf68d370ef
commit
5ad5fc0798
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ class Match(models.Model):
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_keys(cls, data):
|
def get_keys(cls, data):
|
||||||
data = {
|
data = {
|
||||||
'title': normalize_value(data['title'].lower()),
|
'title': normalize_value(data.get('title', "").lower()),
|
||||||
'year': str(data.get('year', '')),
|
'year': str(data.get('year', '')),
|
||||||
'director': normalize_value(';'.join(sorted(data.get('director', []))))
|
'director': normalize_value(';'.join(sorted(data.get('director', []))))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue