Commit 98b5be5b authored by 金凯强's avatar 金凯强 🎨

修复报错

parent d73148cb
Pipeline #22223 failed with stage
in 11 seconds
......@@ -10,7 +10,6 @@ from app.conncetion.conncetion_service import ConnectionService
from app.utils.common_tools import CommonTools
from app.utils.db_tools import db_driver
from flask_app import git_path, repo
from huansi_utils.common.string import between_string
from huansi_utils.exception.exception import HSException
......@@ -88,7 +87,7 @@ where B.default_version=1'''
:param json:
:return:
'''
# CommonTools.validate_runner_is_install()
CommonTools.validate_runner_is_install()
self.checkout(project_no)
compose_content = self.get_compose_content()
......
......@@ -164,7 +164,7 @@ class WebApi(object):
raise NotAcceptable()
if mediatype in self.representations:
# 当被是别称成浏览器访问的试试,吧mediatype类型装换为json格式,避免在浏览器上乱码
if mediatype == 'text/html':
if mediatype == 'text/html' and data:
if '<html>' in data and '</html>' in data:
pass
else:
......
......@@ -11,4 +11,4 @@ _route_register_instance.init_app(global_app)
'''新的一套API运行方式'''
if __name__ == '__main__':
global_app.run(host="0.0.0.0", port=int(global_app.config.get('IP_PORT')) or 5000, debug=False)
global_app.run(host="0.0.0.0", port=int(global_app.config.get('IP_PORT')) or 5000, debug=True)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment