|
From: <nev...@us...> - 2010-07-30 09:46:03
|
details: http://hg.localdomain.org/vmm/rev/3fe8d6cdbe3a changeset: 330:3fe8d6cdbe3a user: Pascal Volk date: Fri Jul 30 09:45:51 2010 +0000 description: VMM/handler: _make_home() Create the domain directory if it doesn't exist for some reason. diffstat: VirtualMailManager/handler.py | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diffs (13 lines): diff -r 41789df75339 -r 3fe8d6cdbe3a VirtualMailManager/handler.py --- a/VirtualMailManager/handler.py Fri Jul 30 09:37:44 2010 +0000 +++ b/VirtualMailManager/handler.py Fri Jul 30 09:45:51 2010 +0000 @@ -264,8 +264,7 @@ """Create a home directory for the new Account *account*.""" domdir = account.domain.directory if not lisdir(domdir): - raise VMMError(_(u"No such directory: %s") % domdir, - NO_SUCH_DIRECTORY) + self._make_domain_dir(account.domain) os.umask(0007) uid = account.uid os.chdir(domdir) |