diff options
Diffstat (limited to 'src/fingerchange.py')
-rwxr-xr-x | src/fingerchange.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fingerchange.py b/src/fingerchange.py index 65a2691..9e3cc97 100755 --- a/src/fingerchange.py +++ b/src/fingerchange.py @@ -137,6 +137,12 @@ def handle_client(reader, writer): except ValueError: users = get_users_by_name(site, user) + if len(users) == 0: + error = 'finger: no user found by id or name \'{}\'\n'.format(user) + writer.write(error.encode('utf-8')) + writer.close() + return + for user in users: if user['user_type'] == 'unregistered': continue |