mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-21 17:06:36 +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:
|
||||
assert message.obj.SUBCLASS_OF_ID == 0x8af52aac # crc32(b'Updates')
|
||||
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
|
||||
|
||||
self._log.debug('Handling update %s', message.obj.__class__.__name__)
|
||||
|
|
Loading…
Reference in New Issue
Block a user