Commit 7d3ca0ba authored by Likun Zhang's avatar Likun Zhang
Browse files

Fix bug: user name can't be empty.

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent 23f9a44a
...@@ -91,8 +91,12 @@ def main(): ...@@ -91,8 +91,12 @@ def main():
try: try:
while True : while True :
name = input("Desired Login Name:") name = input("Desired Login Name:")
if name == '':
print("error, user name can't be empty")
if username_exist(name, filename): if username_exist(name, filename):
print("The usename already exist!") print("use name already exist!")
continue continue
while True: while True:
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