Commit 6d9aa403 authored by Christian Robottom's avatar Christian Robottom

Better wording for exception in database handling

parent 86207a9d
...@@ -108,7 +108,7 @@ class Database: ...@@ -108,7 +108,7 @@ class Database:
def add_user(self, username, password): def add_user(self, username, password):
if self._users.has_key(username): if self._users.has_key(username):
raise LookupError, "User %s does already exist" % username raise LookupError, "User %s already exists" % username
self._store_password(username, password) self._store_password(username, password)
def del_user(self, username): def del_user(self, username):
......
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