🩹 Strip video number before processing
This commit is contained in:
parent
02a1fbc554
commit
8077378510
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ import os
|
||||||
|
|
||||||
class Video:
|
class Video:
|
||||||
def __init__(self, video_number: str):
|
def __init__(self, video_number: str):
|
||||||
|
video_number = video_number.strip()
|
||||||
if len(video_number) <= 2:
|
if len(video_number) <= 2:
|
||||||
raise InvalidVideoNumberException(
|
raise InvalidVideoNumberException(
|
||||||
f"The video number {video_number} is too short!"
|
f"The video number {video_number} is too short!"
|
||||||
|
|
Loading…
Reference in a new issue