mirror of https://github.com/fmartingr/iosfu.git
Better assertion
This commit is contained in:
parent
f084b77405
commit
8877e2e66a
|
@ -18,7 +18,8 @@ class GUIController(object):
|
|||
Decorator to register GUIPanels.
|
||||
"""
|
||||
ins = panel_component()
|
||||
assert isinstance(ins, GUIPanel)
|
||||
assert isinstance(ins, GUIPanel), "{}.{} is not a GUIPanel insance"\
|
||||
.format(ins.__module__, panel_component.__name__)
|
||||
slug = ins.__slug__
|
||||
|
||||
# Append panel to instance manager
|
||||
|
|
Loading…
Reference in New Issue