Skip to content

Commit

Permalink
Fix for Sentry OPENSHOT-1V7C: 'NoneType' object has no attribute 'data'
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoomph committed Jun 28, 2024
1 parent 98d0ae3 commit d198ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/waveform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d198ac1

Please sign in to comment.