Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7123583
D8524.id30703.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
345 B
Subscribers
None
D8524.id30703.diff
View Options
diff --git a/swh/scheduler/backend.py b/swh/scheduler/backend.py
--- a/swh/scheduler/backend.py
+++ b/swh/scheduler/backend.py
@@ -173,6 +173,9 @@
where id in %s
"""
+ if not lister_ids:
+ return []
+
cur.execute(query, (tuple(lister_ids),))
return [Lister(**row) for row in cur]
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 11:53 AM (18 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3219927
Attached To
D8524: backend: Prevent query exception when lister ids is empty
Event Timeline
Log In to Comment