diff options
| author | tassaron | 2022-05-05 20:54:39 -0400 |
|---|---|---|
| committer | tassaron | 2022-05-05 20:54:39 -0400 |
| commit | 7db20789510feca288cb9d035e65ebb8399f567b (patch) | |
| tree | 1161a1e4f627c4b2672fdbe5341684668c789ddc | |
| parent | 5cc3738ec71815f48bc498ee94c88ba04ae4606d (diff) | |
catch PermissionError if FFmpeg doesn't work
| -rw-r--r-- | src/toolkit/ffmpeg.py | 2 |
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 |
