mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-27 19:26:11 +00:00
8 lines
151 B
Python
8 lines
151 B
Python
|
|
||
|
def has_attribute(obj, name):
|
||
|
try:
|
||
|
object.__getattribute__(obj, name)
|
||
|
return True
|
||
|
except AttributeError:
|
||
|
return False
|