Commit 455f4c3a authored by Christopher R. Gabriel's avatar Christopher R. Gabriel
Browse files

manage login failed exception

parent 69c400ed
......@@ -390,8 +390,11 @@ if user is None:
password = os.environ.get("OCTOFUSS_PASSWORD", None)
if password is None:
password = getpass.getpass("Password: ")
app = App(url, user, password)
try:
app = App(url, user, password)
except Exception, e:
print e
sys.exit(2)
if opts.batch:
try:
......@@ -424,5 +427,6 @@ else:
except KeyboardInterrupt:
print
pass
except KeyError, e:
print e
#print "Connecting to", sys.argv[0]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment