diff --git a/seplis_play_server/scanners/base.py b/seplis_play_server/scanners/base.py index 2c636f3..eea0ae4 100644 --- a/seplis_play_server/scanners/base.py +++ b/seplis_play_server/scanners/base.py @@ -124,12 +124,17 @@ async def get_keyframes(self, path): stderr=subprocess.PIPE, ) data, error = await process.communicate() + if error: if isinstance(error, bytes): error = error.decode('utf-8') - raise Exception(f'FFprobe error: {error}') + logger.error(f'FFprobe error: {error}') + return + if not data: - raise Exception(f'Failed to get keyframes from {path}, either this is not a media file or it is corrupt.') + logger.error(f'Failed to get keyframes from {path}, either this is not a media file or it is corrupt.') + return + if isinstance(data, bytes): data = data.decode('utf-8') data = utils.json_loads(data)