VirtualMailManager/mailbox.py
branchv0.6.x
changeset 326 8f8d9c4c8332
parent 323 d58cc465dc61
child 366 d6573da35b5f
--- a/VirtualMailManager/mailbox.py	Thu Jul 29 04:01:43 2010 +0000
+++ b/VirtualMailManager/mailbox.py	Thu Jul 29 19:14:19 2010 +0000
@@ -15,7 +15,7 @@
 from subprocess import Popen, PIPE
 
 from VirtualMailManager.account import Account
-from VirtualMailManager.common import is_dir
+from VirtualMailManager.common import lisdir
 from VirtualMailManager.errors import VMMError
 from VirtualMailManager.constants import VMM_ERROR
 
@@ -94,8 +94,7 @@
         Creates a new mailbox instance.
         Use one of the `Maildir`, `SingleDbox` or `MultiDbox` classes.
         """
-        assert isinstance(account, Account)
-        is_dir(account.home)
+        assert isinstance(account, Account) and lisdir(account.home)
         self._user = account
         self._boxes = []
         self._root = self._user.mail_location.directory