mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
fix string conversion
This commit is contained in:
parent
103c8cd56e
commit
86c681df83
1 changed files with 2 additions and 2 deletions
|
|
@ -442,11 +442,11 @@ class ExtractReviewSlate(publish.Extractor):
|
|||
input_width = width
|
||||
input_height = height
|
||||
|
||||
input_pixel_aspect = str(stream.get("sample_aspect_ratio"))
|
||||
input_pixel_aspect = stream.get("sample_aspect_ratio")
|
||||
if input_pixel_aspect is not None:
|
||||
try:
|
||||
input_pixel_aspect = float(
|
||||
eval(input_pixel_aspect.replace(':', '/')))
|
||||
eval(str(input_pixel_aspect).replace(':', '/')))
|
||||
except Exception:
|
||||
self.log.debug(
|
||||
"__Converting pixel aspect to float failed: {}".format(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue