diff options
author | lovetox <philipp@hoerist.com> | 2020-03-20 23:38:00 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-03-20 23:38:00 +0300 |
commit | c49599023f219acb07646756f40d30fe77b9a258 (patch) | |
tree | 0663c15e3d064110a1091b4fe4e3ab979cb37e7e /nbxmpp/client.py | |
parent | b22e79b68f4ff3c7bbfca260aa1663dd35b542bd (diff) |
Client: Don't pass stream error as error text
Diffstat (limited to 'nbxmpp/client.py')
-rw-r--r-- | nbxmpp/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nbxmpp/client.py b/nbxmpp/client.py index ea86eac..d472cd6 100644 --- a/nbxmpp/client.py +++ b/nbxmpp/client.py @@ -438,7 +438,7 @@ class Client(Observable): def _on_stream_end(self, _dispatcher, _signal_name, error): if not self.has_error: - self._set_error(StreamError.STREAM, 'stream-end', error) + self._set_error(StreamError.STREAM, error or 'stream-end') self._con.shutdown_input() if not self._stream_close_initiated: |