diff --git a/techrec/forge.py b/techrec/forge.py index 4e621b6..d0ca94b 100644 --- a/techrec/forge.py +++ b/techrec/forge.py @@ -121,11 +121,10 @@ async def create_mp3( intervals = [] for begin, start_cut, end_cut in get_files_and_intervals(start, end): try: - file = await get_timefile(begin) + filename = await get_timefile(begin) except Exception as e: - logger.error("Error while retrieving file: %s", e) - else: - intervals.append((file, start_cut, end_cut)) + raise ValueError("Error while retrieving file: %s" % e) from e + intervals.append((filename, start_cut, end_cut)) if os.path.exists(outfile): raise OSError("file '%s' already exists" % outfile) for path, _s, _e in intervals: