dont throw on __len__ attribute

This commit is contained in:
Bonta-kun 2019-12-10 02:14:22 +01:00
parent 60b3c83e1a
commit f479c8dc23
1 changed files with 2 additions and 0 deletions

View File

@ -626,6 +626,8 @@ class CollectionState(object):
return self.can_reach(item[10]) return self.can_reach(item[10])
#elif item.startswith('has_'): #elif item.startswith('has_'):
# return self.has(item[4]) # return self.has(item[4])
if item == '__len__':
return
raise RuntimeError('Cannot parse %s.' % item) raise RuntimeError('Cannot parse %s.' % item)