1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-25 09:12:38 +00:00
bazarr/libs/plex/helpers.py
2018-10-31 17:08:29 +01:00

6 lines
150 B
Python

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