changed warn() in warning()

This commit is contained in:
jeancf 2022-12-01 14:03:52 +01:00
parent 6cd4057f9f
commit 55aad8c83c

View File

@ -434,7 +434,7 @@ def process_attachments(nitter_url, attachments_container, status_id, author_acc
try:
ydl.download([video_file])
except Exception as e:
logging.warn('Error downloading twitter video: ' + str(e))
logging.warning('Error downloading twitter video: ' + str(e))
vid_in_tweet = True
else:
logging.debug('downloaded twitter video from attachments')