Skip to content

Commit

Permalink
fix: throw better exception on username undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerwooo committed Jan 24, 2023
1 parent 742d7dd commit 321c372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitsrun/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def do_action(action, username, password, verbose):
try:
if action == "login":
resp = user.login()
message = f"{resp['username']} ({resp['online_ip']}) logged in"
message = f"{user.username} ({resp['online_ip']}) logged in"
elif action == "logout":
resp = user.logout()
message = f"{resp['online_ip']} logged out"
Expand Down

0 comments on commit 321c372

Please sign in to comment.