mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
fix wrong exception catch
This commit is contained in:
parent
76a241afe9
commit
6d3cd04e45
4 changed files with 4 additions and 4 deletions
|
|
@ -101,7 +101,7 @@ class ExtractCameraMayaScene(pype.api.Extractor):
|
|||
self.log.info(
|
||||
"Using {} as scene type".format(self.scene_type))
|
||||
break
|
||||
except AttributeError:
|
||||
except KeyError:
|
||||
# no preset found
|
||||
pass
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class ExtractMayaSceneRaw(pype.api.Extractor):
|
|||
self.log.info(
|
||||
"Using {} as scene type".format(self.scene_type))
|
||||
break
|
||||
except AttributeError:
|
||||
except KeyError:
|
||||
# no preset found
|
||||
pass
|
||||
# Define extract output file path
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class ExtractModel(pype.api.Extractor):
|
|||
self.log.info(
|
||||
"Using {} as scene type".format(self.scene_type))
|
||||
break
|
||||
except AttributeError:
|
||||
except KeyError:
|
||||
# no preset found
|
||||
pass
|
||||
# Define extract output file path
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ class ExtractYetiRig(pype.api.Extractor):
|
|||
self.log.info(
|
||||
"Using {} as scene type".format(self.scene_type))
|
||||
break
|
||||
except AttributeError:
|
||||
except KeyError:
|
||||
# no preset found
|
||||
pass
|
||||
yeti_nodes = cmds.ls(instance, type="pgYetiMaya")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue