VirtualMailManager/handler.py
branchv0.6.x
changeset 559 cc0f67f99780
parent 557 1498abbb6c91
child 568 14abdd04ddf5
--- a/VirtualMailManager/handler.py	Thu Jun 14 20:45:12 2012 +0000
+++ b/VirtualMailManager/handler.py	Wed Jun 27 12:18:53 2012 +0000
@@ -832,8 +832,10 @@
         if not acc:
             raise VMMError(_(u"The account '%s' does not exist.") %
                            acc.address, NO_SUCH_ACCOUNT)
-        transport = None if transport == 'default' \
-                         else Transport(self._dbh, transport=transport)
+        if transport == 'default':
+            transport = None
+        else:
+            transport = Transport(self._dbh, transport=transport)
         acc.update_transport(transport)
 
     def user_services(self, emailaddress, *services):