无法在JIRA和Python之间建立连接

无法在JIRA和Python之间建立连接,python,authentication,jira-cli,Python,Authentication,Jira Cli,我正试图使用python连接到Jira,但我的python应用程序在运行了将近1-2分钟后就停止了。基本上它显示:“python.exe已停止工作” My code is as below: #import libraries from jira import JIRA from jira.exceptions import JIRAError import sys options = {'server': 'https://sipcg.atlassian.net'}

我正试图使用python连接到Jira,但我的python应用程序在运行了将近1-2分钟后就停止了。基本上它显示:“python.exe已停止工作”

My code is as below:

#import libraries
from jira import JIRA    
from jira.exceptions import JIRAError    
import sys    
options = {'server': 'https://sipcg.atlassian.net'}    

try:    
    print("start!")    
    jira = JIRA(options=options, auth=('xyz', 'xyz'))    
except JIRAError as e:    
    if e.status_code == 401:    
        print ("Login to JIRA failed. Check your username and password")    
print ("done!")    

#Please help me in order to connect using jiracli    
#Note: ignore the python indentation attached here