mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Fix of no_of_frames (#5819)
If it throws exception, no_of_frames wont be available. This approach is used to limit need to decide if published file is image or video-like. Hopefully exception is fast enough and would be still necessary for rare cases of weird video-likes files.
This commit is contained in:
parent
658aa3e30b
commit
f35b3508ea
1 changed files with 1 additions and 2 deletions
|
|
@ -156,8 +156,7 @@ class CollectPublishedFiles(pyblish.api.ContextPlugin):
|
|||
self.log.debug("frameEnd:: {}".format(
|
||||
instance.data["frameEnd"]))
|
||||
except Exception:
|
||||
self.log.warning("Unable to count frames "
|
||||
"duration {}".format(no_of_frames))
|
||||
self.log.warning("Unable to count frames duration.")
|
||||
|
||||
instance.data["handleStart"] = asset_doc["data"]["handleStart"]
|
||||
instance.data["handleEnd"] = asset_doc["data"]["handleEnd"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue