mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-03 04:10:49 +08:00
Protect against no notifications received
This commit is contained in:
@ -55,6 +55,8 @@ async def polling_loop():
|
|||||||
last_modified[0] = response.headers['Last-Modified']
|
last_modified[0] = response.headers['Last-Modified']
|
||||||
since[0] = None
|
since[0] = None
|
||||||
notifications = await response.json()
|
notifications = await response.json()
|
||||||
|
if not notifications:
|
||||||
|
continue
|
||||||
for notification in notifications:
|
for notification in notifications:
|
||||||
if 'id' in notification and notification['id'] in handled_ids:
|
if 'id' in notification and notification['id'] in handled_ids:
|
||||||
continue
|
continue
|
||||||
|
Reference in New Issue
Block a user