Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
忽略try except没有指定错误类型的问题
Browse files Browse the repository at this point in the history
putianyi889 committed Jan 20, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 371217f commit 3ad7a55
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -30,4 +30,4 @@ jobs:
- name: Run Tests
run: |
python -m flake8 --ignore=E501
python -m flake8 --ignore=E501,E722
2 changes: 2 additions & 0 deletions back_end/saolei/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -92,6 +92,8 @@ def default(self, obj):
使用 AK,SK 生成鉴权签名(Access Token)。不能调用太多次。
:return: access_token,或是None(如果错误)
"""


def get_access_token() -> str:
try:
with open("secrets.json", 'r') as f:

0 comments on commit 3ad7a55

Please sign in to comment.