Index: webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/noise_generation.py |
diff --git a/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/noise_generation.py b/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/noise_generation.py |
index a6a8a0653c7800e3efda9be678565dc278041605..6af6eb6f1a061df7137a995a424d08d27879c204 100644 |
--- a/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/noise_generation.py |
+++ b/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/noise_generation.py |
@@ -32,6 +32,7 @@ except ImportError: |
sys.exit(1) |
from . import data_access |
+from . import exceptions |
from . import signal_processing |
class NoiseGenerator(object): |
@@ -319,7 +320,7 @@ class EnvironmentalNoiseGenerator(NoiseGenerator): |
self._NOISE_TRACKS_PATH, noise_track_filename) |
if not os.path.exists(noise_track_filepath): |
logging.error('cannot find the <%s> noise track', noise_track_filename) |
- continue |
+ raise exceptions.FileNotFoundError() |
noise_signal = signal_processing.SignalProcessingUtils.load_wav( |
noise_track_filepath) |