diff -r 18870919ec48 -r 1a9247e9763f 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)))