From e5a316e509821e2a1fb554288094890149972552 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 23 May 2024 15:51:34 +0500 Subject: [PATCH] fix api calls error handling by accident replaced in f2696d5 TypeError with NotImplementedError --- src/ifcopenshell-python/ifcopenshell/api/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/__init__.py b/src/ifcopenshell-python/ifcopenshell/api/__init__.py index d3d0b2f475..4849d8eeff 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/__init__.py +++ b/src/ifcopenshell-python/ifcopenshell/api/__init__.py @@ -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'"