osyvokon commited on
Commit
d29896d
1 Parent(s): f350aa0

Catch more exceptions

Browse files
Files changed (1) hide show
  1. fbeeper_hubert.py +1 -1
fbeeper_hubert.py CHANGED
@@ -11,7 +11,7 @@ import torch
11
  import numpy as np
12
  try:
13
  import soundfile
14
- except ImportError:
15
  warnings.warn("Cannot import soundfile. Reading/writing files will be unavailable")
16
 
17
 
 
11
  import numpy as np
12
  try:
13
  import soundfile
14
+ except (ImportError, OSError):
15
  warnings.warn("Cannot import soundfile. Reading/writing files will be unavailable")
16
 
17