aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortassaron2022-05-05 20:54:39 -0400
committertassaron2022-05-05 20:54:39 -0400
commit7db20789510feca288cb9d035e65ebb8399f567b (patch)
tree1161a1e4f627c4b2672fdbe5341684668c789ddc /src
parent5cc3738ec71815f48bc498ee94c88ba04ae4606d (diff)
catch PermissionError if FFmpeg doesn't work
Diffstat (limited to 'src')
-rw-r--r--src/toolkit/ffmpeg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/toolkit/ffmpeg.py b/src/toolkit/ffmpeg.py
index 1649670..b8e54cb 100644
--- a/src/toolkit/ffmpeg.py
+++ b/src/toolkit/ffmpeg.py
@@ -392,7 +392,7 @@ def getAudioDuration(filename):
fileInfo = checkOutput(command, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as ex:
fileInfo = ex.output
- except FileNotFoundError:
+ except (FileNotFoundError, PermissionError):
# ffmpeg is possibly not installed
return False