svjack commited on
Commit
b18c329
·
1 Parent(s): e0be361

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -106,6 +106,8 @@ def zip_ims(g):
106
  if g is None:
107
  return None
108
  l = list(map(lambda x: x["name"], g))
 
 
109
  zip_file_name ="tmp.zip"
110
  with ZipFile(zip_file_name ,"w") as zipObj:
111
  for ele in l:
 
106
  if g is None:
107
  return None
108
  l = list(map(lambda x: x["name"], g))
109
+ if not l:
110
+ return None
111
  zip_file_name ="tmp.zip"
112
  with ZipFile(zip_file_name ,"w") as zipObj:
113
  for ele in l: