Skip to content

Commit

Permalink
clean logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrismanaziz authored Jul 20, 2022
1 parent 44bd202 commit 414fe0f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions plugins/channel_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ async def channel_post(client: Client, message: Message):
)

if not DISABLE_CHANNEL_BUTTON:
await post_message.edit_reply_markup(reply_markup)
try:
await post_message.edit_reply_markup(reply_markup)
except Exception:
pass


@Bot.on_message(
Expand All @@ -99,5 +102,5 @@ async def new_post(client: Client, message: Message):
)
try:
await message.edit_reply_markup(reply_markup)
except Exception as e:
LOGGER(__name__).warning(e)
except Exception:
pass

0 comments on commit 414fe0f

Please sign in to comment.