From d198ac1ccbe40ae8f5637dd6a6359937bdb54e97 Mon Sep 17 00:00:00 2001 From: Jonathan Thomas Date: Thu, 27 Jun 2024 23:22:52 -0500 Subject: [PATCH] Fix for Sentry OPENSHOT-1V7C: 'NoneType' object has no attribute 'data' --- src/classes/waveform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/waveform.py b/src/classes/waveform.py index 0a87b059d8..7aa4c21c60 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