完成 Ruff 全量清理
This commit is contained in:
@@ -33,7 +33,7 @@ def hash_password(password: str) -> str:
|
||||
def verify_password(plain: str, hashed: str) -> bool:
|
||||
try:
|
||||
return bcrypt.checkpw(plain.encode("utf-8")[:72], hashed.encode("utf-8"))
|
||||
except Exception:
|
||||
except Exception: # noqa: BLE001 外部接口与任务边界需要保留宽泛异常兜底
|
||||
return False
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user