mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 04:59:52 +00:00
PanelSpy - fix error handling methods that have a return value
E.g. `ReferenceUI` has `self.get_object_name(context)` - since value wasn't returned, it was returning `None`, breaking the tests.
This commit is contained in:
@@ -170,7 +170,7 @@ class PanelSpy:
|
|||||||
panel = None if default_closed else self
|
panel = None if default_closed else self
|
||||||
return header, panel
|
return header, panel
|
||||||
else:
|
else:
|
||||||
getattr(self.blender_panel, self.spied_attr)(self, *args, **kwargs)
|
return getattr(self.blender_panel, self.spied_attr)(self, *args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
class OperatorSpy:
|
class OperatorSpy:
|
||||||
|
|||||||
Reference in New Issue
Block a user