sitron / lst

3 stars 3 forks source link

Error handling against Jira #29

Closed jeanmonod closed 10 years ago

jeanmonod commented 10 years ago

Today, I got

[dj]/Users/dj/Sites/vca|responsive>lst sprint-burnup pia
Reading config
Sprint pia found in config
Start fetching Zebra
Will now parse 38 entries found in Zebra
End Zebra
Start fetching Jira
Traceback (most recent call last):
  File "/usr/local/share/python/lst", line 7, in <module>
    execfile(__file__)
  File "/Users/dj/Sites/lst/bin/lst", line 4, in <module>
    lst.Lst()
  File "/Users/dj/Sites/lst/lst/__init__.py", line 99, in __init__
    action.run(args)
  File "/Users/dj/Sites/lst/lst/commands/__init__.py", line 153, in run
    stories = jira_manager.get_stories_for_sprint_with_end_date(sprint)
  File "/Users/dj/Sites/lst/lst/managers/jiraManager.py", line 25, in get_stories_for_sprint_with_end_date
    return self._get_stories_for_sprint(sprint, post_processor)
  File "/Users/dj/Sites/lst/lst/managers/jiraManager.py", line 81, in _get_stories_for_sprint
    post_processor=post_processor
  File "/Users/dj/Sites/lst/lst/managers/jiraManager.py", line 64, in get_stories_by_url
    result = remote.get_data(url)
  File "/Users/dj/Sites/lst/lst/remote.py", line 59, in get_data
    response = self._request(url)
  File "/Users/dj/Sites/lst/lst/remote.py", line 45, in _request
    raise Exception('Unable to connect to Jira. Check your connection status and try again.')
Exception: Unable to connect to Jira. Check your connection status and try again.

But Jira is up and running, lst is probably not pointing out the good error...

jeanmonod commented 10 years ago

OK, I got it, it was a wrong project id...