add default None to getattr call to prevent errors on some descriptors

This commit is contained in:
Ryan Pessa 2012-12-13 17:09:37 -06:00
parent 9f1c93a421
commit ed575264e1
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ cdef class EventDispatcher(object):
attrs_found = cp[__cls__] = {}
attrs = dir(__cls__)
for k in attrs:
uattr = getattr(__cls__, k)
uattr = getattr(__cls__, k, None)
if not isinstance(uattr, Property):
continue
if k == 'touch_down' or k == 'touch_move' or k == 'touch_up':