Skip to content

Commit b331f27

Browse files
author
Yo Yehudi
authored
Merge pull request #64 from mbasil09/patch-1
Empty lists can not be uploaded
2 parents 0384fd0 + 3955c5e commit b331f27

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

intermine/lists/listmanager.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,12 @@ 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"
270+
" - the current list has 0")
271+
print("Please create a valid list with at least one "
272+
"element and create the list again.")
273+
return
268274

269275
item_content = content
270276

0 commit comments

Comments
 (0)