summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/fingerchange.py6
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