Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
__repr__ raises AttributeError: 'int' object has no attribute 'QUALNAME' #423
Conversation
|
@gaudat Thanks for the contribution. However, the fix should be applied to if not hasattr(self, "QUALNAME"):
return repr(self) |
|
Incorporated changes. |
|
I couldn't reproduce the issue using latest changes (the repo underwent a deep rewrite), but I found some other minor issues related to this. |


repr-ing a "pyrogram.api.types.UpdateDeleteChannelMessages" object currently throws this exception.It is expected to print something like the following (channel_id, message and pts redacted):
pyrogram.api.types.UpdateDeleteChannelMessages(channel_id=1234567890, messages=pyrogram.api.core.List([1234567]), pts=1245678, pts_count=1)Added checks in "list.py" to see if contents of a List is not a TLObject (from the absence of a "QUALNAME" attribute). Use native
reprfunction if this is the case.