Spaces:
Runtime error
Runtime error
derek-thomas
commited on
Commit
·
3bd2613
1
Parent(s):
0515cdc
Debugging exception
Browse files
app.py
CHANGED
@@ -87,7 +87,8 @@ async def community(payload: WebhookPayload, task_queue: BackgroundTasks):
|
|
87 |
response_text = requests.get(commit_files_url, headers=build_hf_headers()).text
|
88 |
if 'README.md' in response_text:
|
89 |
return Response("No need to trigger, its a README update.", status_code=status.HTTP_200_OK)
|
90 |
-
except:
|
|
|
91 |
return Response("Something weird with the webhook?", status_code=status.HTTP_501_NOT_IMPLEMENTED)
|
92 |
|
93 |
logger.info(f"Webhook received from {payload.repo.name} indicating a repo {payload.event.action}")
|
|
|
87 |
response_text = requests.get(commit_files_url, headers=build_hf_headers()).text
|
88 |
if 'README.md' in response_text:
|
89 |
return Response("No need to trigger, its a README update.", status_code=status.HTTP_200_OK)
|
90 |
+
except Exception as e:
|
91 |
+
logger.info(f"{str(e)}")
|
92 |
return Response("Something weird with the webhook?", status_code=status.HTTP_501_NOT_IMPLEMENTED)
|
93 |
|
94 |
logger.info(f"Webhook received from {payload.repo.name} indicating a repo {payload.event.action}")
|