Spaces:
Runtime error
Runtime error
Catch more exceptions
Browse files- 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 |
|