diff --git a/telegram_upload/video.py b/telegram_upload/video.py index b4139918..2b72dadd 100644 --- a/telegram_upload/video.py +++ b/telegram_upload/video.py @@ -32,5 +32,5 @@ def get_video_thumb(file, output=None, width=90): '-vframes', '1', output, ], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL) - if not p.returncode: + if not p.returncode and os.path.lexists(file): return output