We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13899eb commit 231726eCopy full SHA for 231726e
1 file changed
zoomeye/file.py
@@ -16,6 +16,8 @@
16
zoomeye_dir = os.path.expanduser(config.ZOOMEYE_CONFIG_PATH)
17
18
19
+
20
21
def get_api_key(path) -> str:
22
"""
23
obtain api key from local configuration when querying data
@@ -48,6 +50,7 @@ def get_jwt_token(path) -> str:
48
50
if not os.path.exists(key_file):
49
51
raise FileNotFoundError("not found access token config")
52
53
54
# determine whether the permission of the configuration file is read-only,
55
# if not, set it to read-only
56
if not oct(os.stat(key_file).st_mode).endswith("600"):
0 commit comments