diff --git a/src/classes/waveform.py b/src/classes/waveform.py index 0a87b059d..7aa4c21c6 100644 --- a/src/classes/waveform.py +++ b/src/classes/waveform.py @@ -112,7 +112,7 @@ def getAudioData(file, channel=-1, tid=None): file = File.get(id=file_id) # Only generate audio for readers that actually contain audio - if not file.data.get("has_audio", False): + if not file or not file.data.get("has_audio", False): log.info("File does not have audio. Skipping") return