raise exception if user cannot be found
diff --git a/plstackapi/core/api/keys.py b/plstackapi/core/api/keys.py
index af21f41..b255e98 100644
--- a/plstackapi/core/api/keys.py
+++ b/plstackapi/core/api/keys.py
@@ -12,6 +12,8 @@
             users = User.objects.filter(email=fields['user'])
         if users:
             user = users[0]
+    if not user:
+        raise Exception, "No such user: %s" % fields['user']
     return user 
 
 def add_key(auth, fields):