From 9c34e5f5efaf7a86d023e9b0f3c44d9917b862c0 Mon Sep 17 00:00:00 2001 From: Jake Hader Date: Wed, 9 Mar 2022 19:11:21 -0800 Subject: [PATCH] Fix to a bug where an ARMI application could not call (#593) `armi.configure(app, permissive=True)`. This error is due to fact that the type check for the application that is passed in would never be equal to the type of the base ARMI app class. This now checks if the application passed in is instead an instance of the ARMI app. --- armi/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armi/__init__.py b/armi/__init__.py index 316ca0dec..34a0da3a6 100644 --- a/armi/__init__.py +++ b/armi/__init__.py @@ -306,7 +306,7 @@ def configure(app: Optional[apps.App] = None, permissive=False): app = app or apps.App() if _app is not None: - if permissive and type(_app) is type(app): + if permissive and isinstance(app, apps.App): return else: raise RuntimeError(