# HG changeset patch # User Pascal Volk # Date 1340801187 0 # Node ID 2662f4e17eb4666a1dcaac1a85eada9b4c464288 # Parent cc0f67f99780ffc5702c3564b0a66fd5a37ef34a VMM/account: Check the account's transport only when we have a transport. diff -r cc0f67f99780 -r 2662f4e17eb4 VirtualMailManager/account.py --- a/VirtualMailManager/account.py Wed Jun 27 12:18:53 2012 +0000 +++ b/VirtualMailManager/account.py Wed Jun 27 12:46:27 2012 +0000 @@ -124,7 +124,7 @@ 'mbfmt': maillocation.mbformat, 'version': version_str(maillocation.dovecot_version)}, INVALID_MAIL_LOCATION) - if not maillocation.postfix and \ + if self._transport and not maillocation.postfix and \ self._transport.transport.lower() in ('virtual:', 'virtual'): raise AErr(_(u"Invalid transport '%(transport)s' for mailbox " u"format '%(mbfmt)s'.") %