Skip to content

Commit 231726e

Browse files
committed
update file.py
1 parent 13899eb commit 231726e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

zoomeye/file.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
zoomeye_dir = os.path.expanduser(config.ZOOMEYE_CONFIG_PATH)
1717

1818

19+
20+
1921
def get_api_key(path) -> str:
2022
"""
2123
obtain api key from local configuration when querying data
@@ -48,6 +50,7 @@ def get_jwt_token(path) -> str:
4850
if not os.path.exists(key_file):
4951
raise FileNotFoundError("not found access token config")
5052

53+
5154
# determine whether the permission of the configuration file is read-only,
5255
# if not, set it to read-only
5356
if not oct(os.stat(key_file).st_mode).endswith("600"):

0 commit comments

Comments
 (0)