mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-29 02:55:52 +00:00
7 lines
150 B
Python
7 lines
150 B
Python
|
def has_attribute(obj, name):
|
||
|
try:
|
||
|
object.__getattribute__(obj, name)
|
||
|
return True
|
||
|
except AttributeError:
|
||
|
return False
|