mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
add warning logs if thumbnail creation fails
This commit is contained in:
parent
257a20c263
commit
b508c3ffbb
1 changed files with 6 additions and 0 deletions
|
|
@ -471,6 +471,9 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
|
|||
try:
|
||||
resolution_arg = self._get_resolution_arg("oiiotool", src_path)
|
||||
except RuntimeError:
|
||||
self.log.warning(
|
||||
"Failed to create thumbnail using oiio", exc_info=True
|
||||
)
|
||||
return False
|
||||
|
||||
input_info = get_oiio_info_for_input(src_path, logger=self.log)
|
||||
|
|
@ -501,6 +504,9 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
|
|||
try:
|
||||
resolution_arg = self._get_resolution_arg("ffmpeg", src_path)
|
||||
except RuntimeError:
|
||||
self.log.warning(
|
||||
"Failed to create thumbnail using ffmpeg", exc_info=True
|
||||
)
|
||||
return False
|
||||
|
||||
ffmpeg_path_args = get_ffmpeg_tool_args("ffmpeg")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue