[lint] fix checker:raise-missing-from
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
SouthFox 2023-06-19 14:55:56 +08:00
parent 0f9761ff5c
commit f5f962a85c

View file

@ -24,11 +24,11 @@ def inbox_prechecker(
try: try:
pub_key = actor["publicKey"]["publicKeyPem"] pub_key = actor["publicKey"]["publicKeyPem"]
except json.JSONDecodeError: except json.JSONDecodeError as exc:
raise ValueError raise ValueError from exc
except KeyError: except KeyError as exc:
print("actore gone?") print("actore gone?")
raise KeyError raise KeyError from exc
sigdate = SignedData( sigdate = SignedData(
method = request.method, method = request.method,