diff options
author | lovetox <philipp@hoerist.com> | 2020-03-10 23:30:28 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-03-10 23:30:28 +0300 |
commit | 6afd49a5a7e02a3ac96c7e0ae53f919eb856f311 (patch) | |
tree | 4ec3525348a698adc34e46f402e0c056caa74f97 /nbxmpp | |
parent | a89e9a52cd9fa11809de8c22376eaa40096ddeb4 (diff) |
Fix pylint errors
Diffstat (limited to 'nbxmpp')
-rw-r--r-- | nbxmpp/connection.py | 2 | ||||
-rw-r--r-- | nbxmpp/resolver.py | 1 | ||||
-rw-r--r-- | nbxmpp/websocket.py | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/nbxmpp/connection.py b/nbxmpp/connection.py index 70a79d0..d25a403 100644 --- a/nbxmpp/connection.py +++ b/nbxmpp/connection.py @@ -88,7 +88,7 @@ class Connection(Observable): if self._ignored_tls_errors: log.warning('Ignore TLS certificate errors: %s', - self._ignored_tls_errors) + self._ignored_tls_errors) self._peer_certificate_errors -= self._ignored_tls_errors if Gio.TlsCertificateFlags.UNKNOWN_CA in self._peer_certificate_errors: diff --git a/nbxmpp/resolver.py b/nbxmpp/resolver.py index 0f43578..1391120 100644 --- a/nbxmpp/resolver.py +++ b/nbxmpp/resolver.py @@ -127,6 +127,7 @@ class GioResolver(metaclass=Singleton): for result in result_list: if result.startswith('_xmpp-client-websocket'): return result.split('=')[1] + return None if __name__ == '__main__': diff --git a/nbxmpp/websocket.py b/nbxmpp/websocket.py index 8e34ddf..bd4a8d7 100644 --- a/nbxmpp/websocket.py +++ b/nbxmpp/websocket.py @@ -128,7 +128,7 @@ class WebsocketConnection(Connection): def _on_websocket_closing(_websocket): log.info('Closing') - def _on_websocket_error(self, websocket, error): + def _on_websocket_error(self, _websocket, error): log.error(error) if self._state not in (TCPState.DISCONNECTED, TCPState.DISCONNECTING): self._finalize('disconnected') |