"...text-generation-inference.git" did not exist on "4236e41b0d896dce9435074dde39be74f16ff95e"
Unverified Commit 21558490 authored by moto's avatar moto Committed by GitHub
Browse files

Fix test backend initialization (#537)

parent 9bdaefc8
...@@ -76,7 +76,7 @@ def filter_backends_with_mp3(backends): ...@@ -76,7 +76,7 @@ def filter_backends_with_mp3(backends):
with AudioBackendScope(backend): with AudioBackendScope(backend):
torchaudio.load(test_filepath) torchaudio.load(test_filepath)
return True return True
except RuntimeError: except (RuntimeError, ImportError):
return False return False
return [backend for backend in backends if supports_mp3(backend)] return [backend for backend in backends if supports_mp3(backend)]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment