summaryrefslogtreecommitdiff
path: root/dev-python/httpbin/files
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-09-06 18:28:09 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-09-06 18:28:09 +0000
commit4109b7f60c0112104faa812117111779e7be9284 (patch)
tree766d849b5c76c0a652257557cb70f2775ca7db02 /dev-python/httpbin/files
parent8ffdab7f0ad52e75e31309e792c185a297dd71c4 (diff)
downloadbaldeagleos-repo-4109b7f60c0112104faa812117111779e7be9284.tar.gz
baldeagleos-repo-4109b7f60c0112104faa812117111779e7be9284.tar.xz
baldeagleos-repo-4109b7f60c0112104faa812117111779e7be9284.zip
Adding metadata
Diffstat (limited to 'dev-python/httpbin/files')
-rw-r--r--dev-python/httpbin/files/httpbin-0.10.1-optional-flasgger.patch4
1 files changed, 1 insertions, 3 deletions
diff --git a/dev-python/httpbin/files/httpbin-0.10.1-optional-flasgger.patch b/dev-python/httpbin/files/httpbin-0.10.1-optional-flasgger.patch
index d4695173dad5..b9f5cc6f8469 100644
--- a/dev-python/httpbin/files/httpbin-0.10.1-optional-flasgger.patch
+++ b/dev-python/httpbin/files/httpbin-0.10.1-optional-flasgger.patch
@@ -34,15 +34,13 @@ index a82c1b8..77576a4 100644
from . import filters
from .helpers import (
-@@ -165,7 +168,10 @@ swagger_config = {
+@@ -165,7 +168,8 @@ swagger_config = {
"specs_route": "/",
}
-swagger = Swagger(app, sanitizer=NO_SANITIZER, template=template, config=swagger_config)
+if Swagger is not None:
+ swagger = Swagger(app, sanitizer=NO_SANITIZER, template=template, config=swagger_config)
-+else:
-+ app.logger.warning("Swagger not found, legacy index will be used.")
# Set up Bugsnag exception tracking, if desired. To use Bugsnag, install the
# Bugsnag Python client with the command "pip install bugsnag", and set the