mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
fix api calls error handling
by accident replaced in f2696d5 TypeError with NotImplementedError
This commit is contained in:
@@ -342,7 +342,7 @@ def wrap_usecase(usecase_path, usecase):
|
||||
|
||||
try:
|
||||
result = usecase(*args, **settings)
|
||||
except NotImplementedError as e:
|
||||
except TypeError as e:
|
||||
if not e.args[0].startswith(f"{usecase.__name__}()"):
|
||||
# signature errors typically start with function name
|
||||
# e.g. "TypeError: edit_library() got an unexpected keyword argument 'test'"
|
||||
|
||||
Reference in New Issue
Block a user