mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
better loader error handling
This commit is contained in:
parent
c5cf15aca7
commit
e3116b0bd0
11 changed files with 24 additions and 11 deletions
|
|
@ -1,6 +1,19 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""Houdini specific Avalon/Pyblish plugin definitions."""
|
||||
|
||||
import sys
|
||||
|
||||
from avalon import houdini
|
||||
import hou
|
||||
import six
|
||||
from openpype.api import PypeCreatorMixin
|
||||
|
||||
|
||||
class Creator(PypeCreatorMixin, houdini.Creator):
|
||||
pass
|
||||
def process(self):
|
||||
# reraise as standard Python exception so
|
||||
# Avalon can catch it
|
||||
try:
|
||||
self._process()
|
||||
except hou.Error as er:
|
||||
six.reraise(Exception, er, sys.exc_info()[2])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue