mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-02 11:50:37 +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']
|
||||
since[0] = None
|
||||
notifications = await response.json()
|
||||
if not notifications:
|
||||
continue
|
||||
for notification in notifications:
|
||||
if 'id' in notification and notification['id'] in handled_ids:
|
||||
continue
|
||||
|
Reference in New Issue
Block a user