Skip to content

Commit caac9ab

Browse files
authored
More specific catch clause
1 parent 717072e commit caac9ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_pysoundfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ def target():
765765
for _ in range(n_trials_per_thread):
766766
try:
767767
sf.SoundFile(file_inmemory)
768-
except Exception as e:
768+
except sf.LibsndfileError:
769769
n_reported_errors += 1
770770

771771
threads = [threading.Thread(target=target) for _ in range(n_threads)]

0 commit comments

Comments
 (0)