Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self):
self.client = ElectronBond(
baseurl=settings.ALTAIR['baseurl'],
username=settings.ALTAIR['username'],
password=settings.ALTAIR['password'],
)
try:
self.client.authorize()
except Exception as e:
print e
def __init__(self):
self.client = ElectronBond(
baseurl=settings.AQUARIUS['baseurl'],
username=settings.AQUARIUS['username'],
password=settings.AQUARIUS['password'],
)
if not self.client.authorize():
return False
return True