Hiero: fixing audio collection

This commit is contained in:
Jakub Jezek 2021-05-12 13:01:41 +02:00
parent 9fb629d562
commit caf35d6d70
No known key found for this signature in database
GPG key ID: D8548FBF690B100A

View file

@ -68,7 +68,11 @@ def get_rate(item):
return None
num, den = item.framerate().toRational()
rate = float(num) / float(den)
try:
rate = float(num) / float(den)
except ZeroDivisionError:
return None
if rate.is_integer():
return rate