diff src/core/sat_main.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 448ce3c9e2ac
children 2a072735e459
line wrap: on
line diff
--- a/src/core/sat_main.py	Sun Apr 01 19:48:31 2012 +0200
+++ b/src/core/sat_main.py	Wed Apr 04 00:06:44 2012 +0200
@@ -43,6 +43,7 @@
 import os.path
 
 from sat.core import xmpp
+from sat.core.exceptions import ProfileUnknownError
 from sat.memory.memory import Memory
 from sat.tools.xml_tools import tupleList2dataForm
 from sat.tools.misc import TriggerManager
@@ -213,7 +214,7 @@
         profile = self.memory.getProfileName(profile_key)
         if not profile:
             error (_('Trying to connect a non-exsitant profile'))
-            return defer.fail()
+            raise ProfileUnknownError(profile_key)
         
         if (self.isConnected(profile)):
             info(_("already connected !"))