Improve the GC

This commit is contained in:
Thomas Sileo
2019-08-08 22:54:33 +02:00
parent c00c811837
commit 06462ec8ff
2 changed files with 33 additions and 12 deletions

6
app.py
View File

@@ -629,10 +629,12 @@ def inbox():
logger.info(f"request_id={g.request_id} req_headers={request.headers!r}")
logger.info(f"request_id={g.request_id} raw_data={data}")
try:
if not verify_request(
req_verified, actor_id = verify_request(
request.method, request.path, request.headers, request.data
):
)
if not req_verified:
raise Exception("failed to verify request")
logger.info(f"request_id={g.request_id} signed by {actor_id}")
except Exception:
logger.exception(
f"failed to verify request {g.request_id}, trying to verify the payload by fetching the remote"