1
Fork 0
mirror of https://github.com/Steffo99/greed.git synced 2025-03-13 12:17:27 +00:00

fix a TODO with image upload handling

This commit is contained in:
Pavlo Zhuk 2020-04-10 21:41:01 +03:00
parent b32757daeb
commit 2565fd57d9
5 changed files with 13 additions and 1 deletions

View file

@ -296,6 +296,9 @@ downloading_image = "I'm downloading your photo!\n" \
"It might take a while... Please be patient!\n" \
"I won't be able to answer you while I'm downloading."
downloading_image_failed = "Something went wrong with the image upload handling" \
"Please, try again"
# Edit product: current value
edit_current_value = "The current value is:\n" \
"<pre>{value}</pre>\n" \

View file

@ -297,6 +297,9 @@ downloading_image = "Sto scaricando la tua foto!\n" \
"Potrei metterci un po'... Abbi pazienza!\n" \
"Non sarò in grado di risponderti durante il download."
downloading_image_failed = "Si è verificato un errore durante il caricamento dell'immagine" \
"Per favore riprova"
# Edit product: current value
edit_current_value = "Il valore attuale è:\n" \
"<pre>{value}</pre>\n" \

View file

@ -294,6 +294,9 @@ downloading_image = "Я загружаю фото!\n" \
"Это может занять некоторое время...!\n" \
"Я не смогу отвечать, пока идет загрузка."
downloading_image_failed = "Ошибка при загрузке изображения" \
"Попробуйте еще раз..."
# Edit product: current value
edit_current_value = "Текущее значение:\n" \
"<pre>{value}</pre>\n" \

View file

@ -294,6 +294,9 @@ downloading_image = "Я завантажую фото!\n" \
"Може зайняти деякий час... Майте терпіння!\n" \
"Я не зможу відповідати, поки йде завантаження."
downloading_image_failed = "Помилка при завантаженні зображення" \
"Спробуйте ще раз..."
# Edit product: current value
edit_current_value = "Поточне значення:\n" \
"<pre>{value}</pre>\n" \

View file

@ -267,7 +267,7 @@ class ChatWorker(threading.Thread):
photo = max(update.message.photo, key=attrgetter('width'))
break
else:
# TODO: Add image upload error handling with empty list
self.bot.send_message(self.chat.id, strings.downloading_image_failed)
continue
# If a photo has been sent...