core: exceptions moved to core
plugin group blog: group blog now manage public microblogs
This commit is contained in:
parent
723b468fcc
commit
52b00f6d6f
1 changed files with 57 additions and 41 deletions
|
|
@ -33,7 +33,7 @@ import os,os.path
|
|||
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 @@ class MaildirBox():
|
|||
@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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue