mirror of
https://github.com/MuRuLOSE/limoka.git
synced 2026-06-16 22:34:19 +02:00
fix: not awaited update function
This commit is contained in:
@@ -38,7 +38,7 @@ from .. import utils, loader
|
|||||||
from ..types import BotInlineCall, InlineCall
|
from ..types import BotInlineCall, InlineCall
|
||||||
|
|
||||||
logger = logging.getLogger("Limoka")
|
logger = logging.getLogger("Limoka")
|
||||||
__version__ = (1, 5, 2)
|
__version__ = (1, 5, 3)
|
||||||
|
|
||||||
|
|
||||||
def _parse_version_from_source(source: str):
|
def _parse_version_from_source(source: str):
|
||||||
@@ -1360,6 +1360,7 @@ class Limoka(loader.Module):
|
|||||||
result = searcher.search()
|
result = searcher.search()
|
||||||
except Exception:
|
except Exception:
|
||||||
await call.edit(self.strings["?"], reply_markup=[])
|
await call.edit(self.strings["?"], reply_markup=[])
|
||||||
|
|
||||||
return
|
return
|
||||||
if not result:
|
if not result:
|
||||||
markup = (
|
markup = (
|
||||||
@@ -1737,7 +1738,7 @@ class Limoka(loader.Module):
|
|||||||
"""— Update search index"""
|
"""— Update search index"""
|
||||||
await utils.answer(message, self.strings["index_update_started"])
|
await utils.answer(message, self.strings["index_update_started"])
|
||||||
try:
|
try:
|
||||||
self._update_index()
|
await self._update_index()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.exception(f"Error updating index: {e}")
|
logger.exception(f"Error updating index: {e}")
|
||||||
await utils.answer(message, self.strings["index_update_failed"])
|
await utils.answer(message, self.strings["index_update_failed"])
|
||||||
|
|||||||
Reference in New Issue
Block a user