summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/Account.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/plugins/Account.py b/module/plugins/Account.py
index 61101347d..f731eac17 100644
--- a/module/plugins/Account.py
+++ b/module/plugins/Account.py
@@ -53,7 +53,8 @@ class Account():
self.login(user, self.accounts[user])
def removeAccount(self, user):
- del self.accounts[user]
+ if self.accounts.has_key(user):
+ del self.accounts[user]
def getAccountInfo(self, name):
return {