catch typeerrors for duration metadata, resolves #248
This commit is contained in:
parent
e47d0eb7be
commit
55bfd911b9
|
@ -1059,7 +1059,7 @@ class Media(models.Model):
|
|||
duration = self.loaded_metadata.get(field, 0)
|
||||
try:
|
||||
duration = int(duration)
|
||||
except ValueError:
|
||||
except (TypeError, ValueError):
|
||||
duration = 0
|
||||
return duration
|
||||
|
||||
|
|
Loading…
Reference in New Issue