Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2020-03-20 23:38:00 +0300
committerlovetox <philipp@hoerist.com>2020-03-20 23:38:00 +0300
commitc49599023f219acb07646756f40d30fe77b9a258 (patch)
tree0663c15e3d064110a1091b4fe4e3ab979cb37e7e /nbxmpp/client.py
parentb22e79b68f4ff3c7bbfca260aa1663dd35b542bd (diff)
Client: Don't pass stream error as error text
Diffstat (limited to 'nbxmpp/client.py')
-rw-r--r--nbxmpp/client.py2
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: