From 86a3821657bc0aa9f7e8e35cc3f55115527131ff Mon Sep 17 00:00:00 2001 From: Ondrej Samohel Date: Thu, 12 Aug 2021 12:08:34 +0200 Subject: [PATCH] fix infinite recursion --- openpype/hosts/houdini/api/plugin.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/openpype/hosts/houdini/api/plugin.py b/openpype/hosts/houdini/api/plugin.py index 40c4870a06..610f260426 100644 --- a/openpype/hosts/houdini/api/plugin.py +++ b/openpype/hosts/houdini/api/plugin.py @@ -1,11 +1,7 @@ # -*- coding: utf-8 -*- """Houdini specific Avalon/Pyblish plugin definitions.""" - -import sys - from avalon import houdini import hou -import six from openpype.api import PypeCreatorMixin @@ -16,4 +12,6 @@ class Creator(PypeCreatorMixin, houdini.Creator): try: self._process() except hou.Error as er: - six.reraise(Exception, er, sys.exc_info()[2]) + # cannot do re-raise with six as it will cause + # infinite recursion. + raise Exception(er)