mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Add a check to make sure the method has a __name__ member before trying to print it
This commit is contained in:
parent
52f1abeeae
commit
858275a95f
@ -634,7 +634,10 @@ class Messenger:
|
|||||||
functionName = method.im_class.__name__ + '.' + \
|
functionName = method.im_class.__name__ + '.' + \
|
||||||
method.im_func.__name__
|
method.im_func.__name__
|
||||||
else:
|
else:
|
||||||
functionName = method.__name__
|
if hasattr(method, "__name__"):
|
||||||
|
functionName = method.__name__
|
||||||
|
else:
|
||||||
|
return ""
|
||||||
return functionName
|
return functionName
|
||||||
|
|
||||||
def __eventRepr(self, event):
|
def __eventRepr(self, event):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user