From 8077378510e6256c2ec4e892872a04b8cffac627 Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Mon, 20 Feb 2023 19:56:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Strip=20video=20number=20before?= =?UTF-8?q?=20processing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- video/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/video/__init__.py b/video/__init__.py index 435cda2..315114e 100644 --- a/video/__init__.py +++ b/video/__init__.py @@ -6,6 +6,7 @@ import os class Video: def __init__(self, video_number: str): + video_number = video_number.strip() if len(video_number) <= 2: raise InvalidVideoNumberException( f"The video number {video_number} is too short!"