StarrFox opened merge request !4: make hash lookup not fail for 0 property classes at Valentin B. / printrospector

StarrFox
2022-02-26T07:17:14Z

This merge request fixes a bug with doing hash lookups for classes without properties

this happened because doing bool(PropertyClass) on a class without properties resolves to False because of it's __len__ which was probably not intended by if obj

we use try/except because it's faster than .get and checking if the object is none