jellyfin-kodi/resources/lib/emby/helpers/__init__.py
2018-09-06 03:36:32 -05:00

7 lines
151 B
Python

def has_attribute(obj, name):
try:
object.__getattribute__(obj, name)
return True
except AttributeError:
return False