Skip to content

Commit 2a7b01c

Browse files
committed
fix: media_path var
1 parent 7fccf61 commit 2a7b01c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ async def handle_message(update: Update, context: ContextTypes.DEFAULT_TYPE): #
179179
None
180180
"""
181181
throttle = False
182+
# media_path can be string or list of strings
183+
media_path = [] # Initilize empty list of media paths
182184
try:
183185
if not update.message or not update.message.text:
184186
return
@@ -239,8 +241,6 @@ async def handle_message(update: Update, context: ContextTypes.DEFAULT_TYPE): #
239241
return
240242
debug("Video is not too long or metadata is not available. Starting download.")
241243

242-
# media_path can be string or list of strings
243-
media_path = [] # Initilize empty list of media paths
244244
video_path = [] # Initilize empty list of video paths
245245
pic_path = [] # Initilize empty list of picture paths
246246
return_path = download_media(url)

0 commit comments

Comments
 (0)