Skip to content

Commit b681eb2

Browse files
committed
Fix for Sentry OPENSHOT-22QG: AttributeError 'NoneType' object has no attribute 'info'
1 parent 1f3486f commit b681eb2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/classes/waveform.py

+3
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ def getAudioData(file, channel=-1, tid=None):
163163
# Loop through samples from the file, applying this clip's volume curve
164164
clip_audio_data = []
165165
clip_instance = get_app().window.timeline_sync.timeline.GetClip(clip.id)
166+
if not clip_instance:
167+
log.info("Clip not found, bailing out of waveform volume adjustments")
168+
continue
166169
num_frames = clip_instance.info.video_length
167170

168171
# Determine best guess # of samples (based on duration)

0 commit comments

Comments
 (0)