Skip to content

Commit

Permalink
fixup fcb734a
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 9, 2025
1 parent d8bcdef commit 4b2b445
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xpra/auth/auth_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def get_auth_module(auth_str: str, cwd=os.getcwd(), **auth_options) -> AuthDef:
auth_mod_name = "xpra.auth." + auth_modname
log("auth module name for '%s': '%s'", auth, auth_mod_name)
auth_module = import_module(auth_mod_name)
auth_module = getattr(auth_module, "Authenticator")
if not hasattr(auth_module, "Authenticator"):
raise ImportError(f"no 'Authenticator' class in {auth_mod_name!r}")
except ImportError as e:
log("cannot load %s auth for %r", auth, auth_str, exc_info=True)
raise InitException(f"cannot load authentication module '{auth}' for {auth_str!r}: {e}") from None
Expand Down

0 comments on commit 4b2b445

Please sign in to comment.