bazarr/libs/plex/helpers.py

7 lines
150 B
Python
Raw Normal View History

2018-11-01 00:08:29 +08:00
def has_attribute(obj, name):
try:
object.__getattribute__(obj, name)
return True
except AttributeError:
return False