Skip to content

Commit a744f80

Browse files
Update fft_bench.py
Provide list of exceptions that triggers customer warning
1 parent 57c78bc commit a744f80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fft_bench.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import mkl_fft
1717
import mkl_fft._scipy_fft_backend as sfbn
1818
scipy.fft.set_global_backend(sfbn)
19-
except:
19+
except (ImportError, ModuleNotFoundError, ValueError):
2020
print("Unable to use mkl_fft as scipy.fft backend")
2121

2222
# Mark which FFT submodules are available...

0 commit comments

Comments
 (0)