Skip to content

Commit

Permalink
馃敄 Update to v1.2.21
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Jan 2, 2023
1 parent 4566c21 commit 0a4dda0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pagermaid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from pyromod.listen.temp_fix import temp_fix

pgm_version = "1.2.20"
pgm_version = "1.2.21"
CMD_LIST = {}
module_dir = __path__[0]
working_dir = getcwd()
Expand Down
9 changes: 5 additions & 4 deletions pagermaid/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
MessageIdInvalid,
MessageNotModified,
MessageEmpty,
UserNotParticipant
UserNotParticipant, PeerIdInvalid
)
from pyrogram.handlers import MessageHandler, EditedMessageHandler

Expand All @@ -20,7 +20,6 @@
from pagermaid.inject import inject
from pagermaid.single_utils import Message, AlreadyInConversationError, TimeoutConversationError, ListenerCanceled
from pagermaid.utils import lang, attach_report, sudo_filter, alias_command, get_permission_name, process_exit
from pagermaid.utils import client as httpx_client
from pagermaid.hook import Hook

secret_generator = secrets.SystemRandom()
Expand Down Expand Up @@ -153,8 +152,10 @@ async def handler(client: Client, message: Message):
raise StopPropagation from e
except KeyboardInterrupt as e:
raise KeyboardInterrupt from e
except (UserNotParticipant, MessageNotModified, MessageEmpty, Flood, Forbidden):
pass
except (UserNotParticipant, MessageNotModified, MessageEmpty, Flood, Forbidden, PeerIdInvalid):
logs.warning(
"An unknown chat error occurred while processing a command.",
)
except MessageIdInvalid:
logs.warning(
"Please Don't Delete Commands While it's Processing.."
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pyrogram==2.0.73
pyrogram==2.0.93
TgCrypto==1.2.5
Pillow>=8.4.0
pytz>=2021.3
Expand Down

0 comments on commit 0a4dda0

Please sign in to comment.