diff src/plugins/plugin_misc_maildir.py @ 471:6cd04adddaea

core: exceptions moved to core plugin group blog: group blog now manage public microblogs
author Goffi <goffi@goffi.org>
date Wed, 04 Apr 2012 00:06:44 +0200
parents 1c1d1a4994c4
children 2a072735e459
line wrap: on
line diff
--- a/src/plugins/plugin_misc_maildir.py	Sun Apr 01 19:48:31 2012 +0200
+++ b/src/plugins/plugin_misc_maildir.py	Wed Apr 04 00:06:44 2012 +0200
@@ -33,7 +33,7 @@
 from cStringIO import StringIO
 from twisted.internet import reactor
 import pdb
-from sat.exceptions import *
+from sat.core.exceptions import ProfileUnknownError
 from sat.memory.persistent import PersistentBinaryDict
 
 
@@ -107,7 +107,7 @@
         @param observer: method to call when a NewMessage arrive"""
         profile = self.host.memory.getProfileName(profile_key)
         if not profile:
-            raise ProfileUnknownError
+            raise ProfileUnknownError(profile_key)
         if not self.__mailboxes[profile].has_key(boxname):
             self.__mailboxes[profile][boxname]=MailboxUser(self, boxname, observer, profile=profile)
         else: