diff --git a/b2/_internal/console_tool.py b/b2/_internal/console_tool.py index 15b9ebc9..cab2d259 100644 --- a/b2/_internal/console_tool.py +++ b/b2/_internal/console_tool.py @@ -4909,7 +4909,7 @@ def _initialize_b2_api(cls, args: argparse.Namespace, kwargs: dict) -> B2Api: except MissingAccountData: is_same_key_on_disk = False - if not is_same_key_on_disk and not isinstance( + if not is_same_key_on_disk and not issubclass( args.command_class, (AccountAuthorizeBase, AccountClearBase) ): # when user specifies keys via env variables, we switch to in-memory account info