mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
Protect against no notifications received
This commit is contained in:
parent
2de83827b6
commit
ffa4ce3f1e
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue