cdminix commited on
Commit
590565a
·
verified ·
1 Parent(s): 817571c

Update libriheavy.py

Browse files
Files changed (1) hide show
  1. libriheavy.py +2 -2
libriheavy.py CHANGED
@@ -209,8 +209,8 @@ class Libriheavy(datasets.GeneratorBasedBuilder):
209
  try:
210
  npz = dict(np.load(chunk["audio"], allow_pickle=True))
211
  break
212
- except error:
213
- print(error, "retrying in 60s")
214
  sleep(60)
215
  utterances = npz.keys()
216
  with gzip.open(chunk["text"], "rt") as f:
 
209
  try:
210
  npz = dict(np.load(chunk["audio"], allow_pickle=True))
211
  break
212
+ except Exception as e:
213
+ print(e, "retrying in 60s")
214
  sleep(60)
215
  utterances = npz.keys()
216
  with gzip.open(chunk["text"], "rt") as f: