fix: normalize null activity feed payloads (#93)
This commit is contained in:
1 parent
43a2804562
commit
6e24d7db17
2 files changed
+15
-1
No files matched your search
+1
-1
@@ -47,6 +47,6 @@ async def activity_events() -> list[dict]:
|
||||
"repo": event.get("repo") or {},
|
||||
"created_at": event.get("created", ""),
|
||||
}
|
||||
for event in events
|
||||
for event in (events or [])
|
||||
if isinstance(event, dict)
|
||||
]
|
||||
Reference in new issue
Block a user