12 lines
422 B
Python
12 lines
422 B
Python
|
|
import traceback
|
||
|
|
|
||
|
|
try:
|
||
|
|
from Store import Store
|
||
|
|
s = Store(config={}, suppress_debug=True)
|
||
|
|
print('INSTANCE TYPE:', type(s))
|
||
|
|
print('HAS is_available:', hasattr(s, 'is_available'))
|
||
|
|
if hasattr(s, 'is_available'):
|
||
|
|
print('is_available callable:', callable(getattr(s, 'is_available')))
|
||
|
|
print('DIR:', sorted([n for n in dir(s) if not n.startswith('__')]))
|
||
|
|
except Exception:
|
||
|
|
traceback.print_exc()
|