Correct syntax errors v0.6.x
authormartin f. krafft <madduck@madduck.net>
Tue, 10 Apr 2012 00:07:49 +0200
branchv0.6.x
changeset 509 1a9247e9763f
parent 508 18870919ec48
child 510 1fa354bbdb90
Correct syntax errors
VirtualMailManager/catchall.py
--- a/VirtualMailManager/catchall.py	Mon Apr 09 23:50:12 2012 +0200
+++ b/VirtualMailManager/catchall.py	Tue Apr 10 00:07:49 2012 +0200
@@ -91,7 +91,7 @@
         """
         dbc = self._dbh.cursor()
         if not destination:
-            dbc.execute('DELETE FROM catchall WHERE gid = %s', self._gid)
+            dbc.execute('DELETE FROM catchall WHERE gid = %s', (self._gid,))
         else:
             dbc.execute('DELETE FROM catchall WHERE gid = %s '
                         'AND destination = %s', (self._gid, str(destination)))