You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jd...@apache.org on 2023/04/09 21:46:24 UTC

[qpid-python] 04/04: QPID-8170: autoskip amqp1.0 tests

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 8ae83d19b9b83e1f4559295ed174e15085544065
Author: Jiri Daněk <jd...@redhat.com>
AuthorDate: Sun Apr 9 22:58:31 2023 +0200

    QPID-8170: autoskip amqp1.0 tests
    
    AFAICT there is no AMQP 1.0 support in this library anyways
---
 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 3ac9d8f..d24eb09 100644
--- a/qpid/messaging/endpoints.py
+++ b/qpid/messaging/endpoints.py
@@ -206,7 +206,7 @@ class Connection(Endpoint):
       self.port = default(url.port, default(self.port, AMQP_PORT))
 
     if self.protocol and self.protocol != "amqp0-10":
-        raise ConnectionError("Connection option 'protocol' value '" + self.protocol + "' unsupported (must be amqp0-10)")
+        raise VersionError(text="Connection option 'protocol' value '" + self.protocol + "' unsupported (must be amqp0-10)")
       
     self.username = default(url.user, self.username)
     self.password = default(url.password, self.password)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org