Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lunamidori5 committed Jan 19, 2025
1 parent a054cab commit 8bda7f0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Webserver/Programs/Login_program/midori_ai_login_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@

username = None

if os.path.exists(username_file):
with open(username_file, 'r') as f:
username = f.read()

if hasattr(args, "username"):
username = args.username


if username is None:
if os.path.exists(username_file):
with open(username_file, 'r') as f:
username = f.read()

if username is None:
print("Please use ``-u`` with your username...")
sys.exit(25)
Expand Down

0 comments on commit 8bda7f0

Please sign in to comment.