VMM/account: Fixed a typo in Account.delete().
authorPascal Volk <user@localhost.localdomain.org>
Sun, 09 Dec 2012 14:59:46 +0000
changeset 661 29295afafa91
parent 646 86c2ed36aba8
child 662 9ec7770193ad
child 675 d24f094d1cb5
VMM/account: Fixed a typo in Account.delete(). Due to a wrong placed comma `userdelete … force' ended in a TypeError.
VirtualMailManager/account.py
--- a/VirtualMailManager/account.py	Wed Nov 21 12:53:56 2012 +0000
+++ b/VirtualMailManager/account.py	Sun Dec 09 14:59:46 2012 +0000
@@ -440,7 +440,7 @@
         self._chk_state()
         dbc = self._dbh.cursor()
         if force:
-            dbc.execute('DELETE FROM users WHERE uid = %s', (self._uid),)
+            dbc.execute('DELETE FROM users WHERE uid = %s', (self._uid,))
             # delete also all aliases where the destination address is the same
             # as for this account.
             dbc.execute("DELETE FROM alias WHERE destination = %s",