better PEP-8 compliance

This commit is contained in:
souliane 2014-05-07 15:44:31 +02:00
commit 1eeddf5900
2 changed files with 16 additions and 14 deletions

View file

@ -85,5 +85,6 @@ class BridgeInitError(Exception):
class BridgeExceptionNoService(Exception):
pass
class DatabaseError(Exception):
pass

View file

@ -205,7 +205,7 @@ class SAT(service.Service):
"""
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 @@ class SAT(service.Service):
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 @@ class SAT(service.Service):
list_d.addCallback(logPluginResults)
return list_d
d.addCallback(pluginsConnection)
return d