[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:
pub_key = actor["publicKey"]["publicKeyPem"]
except json.JSONDecodeError:
raise ValueError
except KeyError:
except json.JSONDecodeError as exc:
raise ValueError from exc
except KeyError as exc:
print("actore gone?")
raise KeyError
raise KeyError from exc
sigdate = SignedData(
method = request.method,