jellyfin-kodi/resources/lib/emby/helpers/__init__.py

8 lines
151 B
Python
Raw Normal View History

2018-09-06 08:36:32 +00:00
def has_attribute(obj, name):
try:
object.__getattribute__(obj, name)
return True
except AttributeError:
return False