system HF staff commited on
Commit
f775f65
1 Parent(s): 80d4f4b

Update files from the datasets library (from 1.0.2)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.0.2

Files changed (1) hide show
  1. wiki_dpr.py +1 -1
wiki_dpr.py CHANGED
@@ -155,7 +155,7 @@ class WikiDpr(datasets.GeneratorBasedBuilder):
155
  {"embeddings_index": os.path.join(_INDEX_URL, self.config.index_file.format(split=split))}
156
  )
157
  return downloaded_resources["embeddings_index"]
158
- except ConnectionError: # index doesn't exist
159
  pass
160
 
161
  def _post_process(self, dataset, resources_paths):
 
155
  {"embeddings_index": os.path.join(_INDEX_URL, self.config.index_file.format(split=split))}
156
  )
157
  return downloaded_resources["embeddings_index"]
158
+ except (FileNotFoundError, ConnectionError): # index doesn't exist
159
  pass
160
 
161
  def _post_process(self, dataset, resources_paths):