Skip to content

Commit

Permalink
Fix to a bug where an ARMI application could not call (#593)
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
jakehader committed Mar 10, 2022
1 parent 6dcedac commit 9c34e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion armi/__init__.py
Expand Up @@ -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(
Expand Down

0 comments on commit 9c34e5f

Please sign in to comment.