Ignore events to avoid errors in logs

pull/1/head
hikari.ftg 2022-04-01 19:19:43 +00:00
parent 0075802a63
commit becec46e97
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@ class OktetoMod(loader.Module):
async def watcher(self, message: Message) -> None:
if (
"OKTETO_URI" not in os.environ
not hasattr(message, "raw_text", False)
or "OKTETO_URI" not in os.environ
or os.environ["OKTETO_URI"] not in message.raw_text
and "Link previews was updated successfully" not in message.raw_text
or utils.get_chat_id(message) != 169642392