diff src/core/sat_main.py @ 1019:6a16ec17a458

better PEP-8 compliance
author souliane <souliane@mailoo.org>
date Wed, 07 May 2014 15:44:31 +0200
parents fee00f2e11c2
children 8bae81e254a2
line wrap: on
line diff
--- a/src/core/sat_main.py	Thu May 08 19:11:47 2014 +0200
+++ b/src/core/sat_main.py	Wed May 07 15:44:31 2014 +0200
@@ -205,7 +205,7 @@
         """
         profile = self.memory.getProfileName(profile_key)
         if not profile:
-            log.error(_('Trying to connect a non-exsitant profile'))
+            log.error(_('Trying to connect a non-existant profile'))
             raise exceptions.ProfileUnknownError(profile_key)
 
         if self.isConnected(profile):
@@ -219,6 +219,7 @@
             except ValueError:
                 log.error(_("Can't parse port value, using default value"))
                 port = 5222
+
             current = self.profiles[profile] = xmpp.SatXMPPClient(
                 self, profile,
                 jid.JID(self.memory.getParamA("JabberID", "Connection", profile_key=profile), profile),
@@ -279,7 +280,6 @@
                 list_d.addCallback(logPluginResults)
                 return list_d
 
-
             d.addCallback(pluginsConnection)
             return d