Skip to content

Commit ca42c8c

Browse files
authored
Empty lists can not be uploaded
1 parent 0384fd0 commit ca42c8c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

intermine/lists/listmanager.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,11 @@ def create_list(
265265

266266
if name is None:
267267
name = self.get_unused_list_name()
268+
if len(content) <= 0:
269+
print("Lists must have one or more elements - the current list has 0")
270+
print(
271+
"Please create a valid list with at least one element and create the list again")
272+
return
268273

269274
item_content = content
270275

0 commit comments

Comments
 (0)