Exit on authentication failure (fixes #8)

merge-requests/23/head
cgbsat 2019-05-11 17:24:03 +00:00
parent 03cc1f75b7
commit 79bbdab3fc
1 changed files with 1 additions and 0 deletions

View File

@ -308,6 +308,7 @@ def main():
})
if result.url.endswith("/accounts/login/"):
logging.info("Authentication failed")
sys.exit(-1)
else:
logging.info("Authentication successful")