ppsingh commited on
Commit
337280a
1 Parent(s): c726440

Update auditqa/process_chunks.py

Browse files
Files changed (1) hide show
  1. auditqa/process_chunks.py +6 -1
auditqa/process_chunks.py CHANGED
@@ -40,7 +40,12 @@ def load_chunks():
40
  for file in files[category][subtype]:
41
 
42
  # load the chunks
43
- doc_processed = open_file(path_to_data + file + "/"+ file+ ".chunks.json" )
 
 
 
 
 
44
  print("chunks in subtype:",subtype, "are:",len(doc_processed))
45
 
46
  # add metadata information
 
40
  for file in files[category][subtype]:
41
 
42
  # load the chunks
43
+ try:
44
+ doc_processed = open_file(path_to_data + file + "/"+ file+ ".chunks.json" )
45
+
46
+
47
+ except Exception as e:
48
+ print("Exception: ", e)
49
  print("chunks in subtype:",subtype, "are:",len(doc_processed))
50
 
51
  # add metadata information