We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 909dcc0 commit 85cca30Copy full SHA for 85cca30
1 file changed
src/monkeyplug/monkeyplug.py
@@ -306,7 +306,12 @@ def __init__(
306
self.outputFileSpec = oFileSpec if oFileSpec else self.inputFileParts[0] + "_clean"
307
if self.outputFileSpec:
308
outParts = os.path.splitext(self.outputFileSpec)
309
- if ((not oAudioFileFormat) or (str(oAudioFileFormat).upper() == AUDIO_MATCH_FORMAT)) and oFileSpec:
+ if (
310
+ ((not oAudioFileFormat) or (str(oAudioFileFormat).upper() == AUDIO_MATCH_FORMAT))
311
+ and oFileSpec
312
+ and (len(outParts) > 1)
313
+ and outParts[1]
314
+ ):
315
oAudioFileFormat = outParts[1]
316
317
if str(oAudioFileFormat).upper() == AUDIO_MATCH_FORMAT:
0 commit comments