We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0384fd0 + 3955c5e commit b331f27Copy full SHA for b331f27
1 file changed
intermine/lists/listmanager.py
@@ -265,6 +265,12 @@ def create_list(
265
266
if name is None:
267
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
274
275
item_content = content
276
0 commit comments