msumit commented on code in PR #28354:
URL: https://github.com/apache/airflow/pull/28354#discussion_r1048239980


##########
airflow/www/extensions/init_views.py:
##########
@@ -208,7 +208,11 @@ def _handle_method_not_allowed(ex):
             return views.method_not_allowed(ex)
 
     spec_dir = path.join(ROOT_APP_DIR, "api_connexion", "openapi")
-    connexion_app = App(__name__, specification_dir=spec_dir, 
skip_error_handlers=True)
+    if not conf.getboolean("webserver", "enable_swagger_ui"):

Review Comment:
   If someone updates the code but doesn't update the conf file, this line will 
raise an error.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to