This is an automated email from the ASF dual-hosted git repository. jdanek pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/qpid-python.git
commit c91db59a38dc7e95fc64dcbc1a8923c5dc38a0b3 Author: Jiri Daněk <jda...@redhat.com> AuthorDate: Sun Apr 16 18:06:14 2023 +0200 QPID-8631: fix Python 3 comparisons, None cannot be compared using < --- qpid/messaging/endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qpid/messaging/endpoints.py b/qpid/messaging/endpoints.py index 1ab663f..f5f0f0f 100644 --- a/qpid/messaging/endpoints.py +++ b/qpid/messaging/endpoints.py @@ -324,7 +324,7 @@ class Connection(Endpoint): if self._open: raise ConnectionError("already open") self._open = True - if self.reconnect and self.reconnect_timeout > 0: + if self.reconnect and self.reconnect_timeout is not None and self.reconnect_timeout > 0: timeout = self.reconnect_timeout self.attach(timeout=timeout) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org