# HG changeset patch # User Tobias Berling # Date 1295289198 -3600 # Node ID 1b1f8f0cc68797a8554784d3942b1ba427426980 # Parent 4dfc5f3c1f2cd6f23082f83034779f695be4f432 VMM/alias.py: Fixed TypeError when calling dbc.executemany() diff -r 4dfc5f3c1f2c -r 1b1f8f0cc687 VirtualMailManager/alias.py --- a/VirtualMailManager/alias.py Mon Jan 17 17:21:06 2011 +0100 +++ b/VirtualMailManager/alias.py Mon Jan 17 19:33:18 2011 +0100 @@ -127,7 +127,7 @@ dbc = self._dbh.cursor() dbc.executemany("INSERT INTO alias VALUES (%d, '%s', %%s)" % (self._gid, self._addr.localpart), - (str(destination) for destination in destinations)) + ((str(destination),) for destination in destinations)) self._dbh.commit() dbc.close() self._dests.extend(destinations)