Fix warning at implicit long weather request

This commit is contained in:
AlberLC
2022-03-31 20:06:06 +02:00
parent f6093ec01e
commit 7c43db0867

View File

@@ -592,7 +592,7 @@ class FlanaBot(MultiBot, ABC):
place_words.insert(0, 'calle') place_words.insert(0, 'calle')
place_query = ' '.join(place_words) place_query = ' '.join(place_words)
if len(place_query) >= constants.MAX_PLACE_QUERY_LENGTH: if len(place_query) >= constants.MAX_PLACE_QUERY_LENGTH:
if not message.is_inline: if not show_progress_state:
await self.send_error(Media(str(flanautils.resolve_path('resources/mucho_texto.png'))), message, send_as_file=False) await self.send_error(Media(str(flanautils.resolve_path('resources/mucho_texto.png'))), message, send_as_file=False)
return return
if show_progress_state: if show_progress_state: