Omnibus commited on
Commit
ae63911
1 Parent(s): 8ad79c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -472,12 +472,17 @@ def create_index():
472
  print(k)
473
  print(ea['file_name'])
474
  #for ii in ind[0]:
475
- if k in ind.keys():
476
- print("Adding to list")
477
- ind[k].append(ea['file_name'])
478
- else:
479
- print("Adding new Value")
 
 
 
 
480
  ind.update({k:[ea['file_name']]})
 
481
  except Exception as e:
482
  print (e)
483
 
 
472
  print(k)
473
  print(ea['file_name'])
474
  #for ii in ind[0]:
475
+ try:
476
+ if k in ind[0].keys():
477
+ print("Adding to list")
478
+ ind[k].append(ea['file_name'])
479
+ else:
480
+ print("Adding new Value")
481
+ ind.update({k:[ea['file_name']]})
482
+ except Exception as e:
483
+ print (e)
484
  ind.update({k:[ea['file_name']]})
485
+
486
  except Exception as e:
487
  print (e)
488