Fix IDE warnings (#12085)

### What problem does this PR solve?

As title

### Type of change

- [x] Refactoring

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2025-12-22 16:47:21 +08:00
committed by GitHub
parent b42b5fcf65
commit 993bf7c2c8
7 changed files with 22 additions and 14 deletions

View File

@ -108,7 +108,7 @@ def _load_user():
authorization = request.headers.get("Authorization")
g.user = None
if not authorization:
return
return None
try:
access_token = str(jwt.loads(authorization))