Commit 93e25cc0 authored by Wallen姚文辉's avatar Wallen姚文辉

修改没有完善jira信息的报错

parent 3e3d5825
......@@ -14,7 +14,7 @@ jiraAddress="http://jira.galaxy-immi.com"
def getheader(id_):
result=db.session.query(User.jira_account,User.jira_password).filter_by(id=id_).first()
db.session.close()
if not result:
if not result.jira_account and not result.jira_password:
return
headers={
"Authorization":"Basic "+base64.b64encode((result.jira_account+":"+result.jira_password).encode('utf-8')).decode(),
......
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