We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0743a80 commit 105ed0eCopy full SHA for 105ed0e
tests/util/keyhandler.py
@@ -53,11 +53,12 @@ def _decrypt_dict(data: dict) -> dict:
53
54
55
__fp__ = Path(__file__).parent
56
-_auth = _decrypt_dict(tomllib.load(
57
- (__fp__ / "auth.toml").open("rb")
58
-))
59
-_local_auth = tomllib.load(
60
- (__fp__ / "localauth.toml").open("rb")
61
-)
+
+_auth_fp = __fp__ / "auth.toml"
+_local_auth_fp = __fp__ / "local_auth.toml"
+_auth = _decrypt_dict(tomllib.load(_auth_fp.open("rb")))
62
+_local_auth = tomllib.load(_local_auth_fp.open("rb")) if _local_auth_fp.exists() else {}
63
64
AUTH = _auth | _local_auth
0 commit comments