mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Fix log message formatting when obj was not updates
This commit is contained in:
parent
a7db08d020
commit
f902c9293a
|
@ -653,7 +653,11 @@ class MTProtoSender:
|
||||||
try:
|
try:
|
||||||
assert message.obj.SUBCLASS_OF_ID == 0x8af52aac # crc32(b'Updates')
|
assert message.obj.SUBCLASS_OF_ID == 0x8af52aac # crc32(b'Updates')
|
||||||
except AssertionError:
|
except AssertionError:
|
||||||
self._log.warning('Note: %s is not an update, not dispatching it %s', message.obj)
|
self._log.warning(
|
||||||
|
'Note: %s is not an update, not dispatching it %s',
|
||||||
|
message.obj.__class__.__name__,
|
||||||
|
message.obj
|
||||||
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
self._log.debug('Handling update %s', message.obj.__class__.__name__)
|
self._log.debug('Handling update %s', message.obj.__class__.__name__)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user