This is an automated email from the ASF dual-hosted git repository.

gmurthy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git


The following commit(s) were added to refs/heads/main by this push:
     new 9c209e5  DISPATCH-2147: Fix some import errors with the quart 
framework that was preventing the HTTP2 server from starting. This closes #1230.
9c209e5 is described below

commit 9c209e599f69cd8b47bd9a4a1fe661e1ab225a12
Author: Ganesh Murthy <[email protected]>
AuthorDate: Thu May 20 17:15:20 2021 -0400

    DISPATCH-2147: Fix some import errors with the quart framework that was 
preventing the HTTP2 server from starting. This closes #1230.
---
 tests/http2_server.py | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/tests/http2_server.py b/tests/http2_server.py
index 18bed47..c22c07b 100644
--- a/tests/http2_server.py
+++ b/tests/http2_server.py
@@ -19,8 +19,16 @@
 import system_test
 import os
 from quart import Quart, request
-from quart.static import send_file
-from quart.exceptions import HTTPStatusException
+try:
+    from quart.static import send_file
+except ImportError:
+    from quart.helpers import send_file
+
+try:
+    from quart.exceptions import HTTPStatusException
+except ImportError:
+    from werkzeug.exceptions import InternalServerError as HTTPStatusException
+
 import json
 app = Quart(__name__)
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to