better PEP-8 compliance
This commit is contained in:
parent
ee26391a11
commit
1eeddf5900
2 changed files with 16 additions and 14 deletions
|
|
@ -85,5 +85,6 @@ class BridgeInitError(Exception):
|
|||
class BridgeExceptionNoService(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class DatabaseError(Exception):
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue