mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Hiero: fixing audio collection
This commit is contained in:
parent
9fb629d562
commit
caf35d6d70
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue