mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
modified preregister result check
This commit is contained in:
parent
14e192e72c
commit
378022003c
1 changed files with 5 additions and 6 deletions
|
|
@ -180,12 +180,11 @@ class BaseHandler(object):
|
||||||
).format(self.__class__.__name__))
|
).format(self.__class__.__name__))
|
||||||
return
|
return
|
||||||
|
|
||||||
if result is True:
|
if result is not True:
|
||||||
return
|
msg = None
|
||||||
msg = None
|
if isinstance(result, str):
|
||||||
if isinstance(result, str):
|
msg = result
|
||||||
msg = result
|
raise PreregisterException(msg)
|
||||||
raise PreregisterException(msg)
|
|
||||||
|
|
||||||
def preregister(self):
|
def preregister(self):
|
||||||
'''
|
'''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue