MetricsGrimoire / Bicho

Bicho is a command line based tool used to parse bug/issue tracking systems
http://metricsgrimoire.github.com/Bicho/
GNU General Public License v2.0
71 stars 31 forks source link

Error parsing date analyzing a JIRA bts #53

Closed canasdiaz closed 11 years ago

canasdiaz commented 11 years ago
lcanas@fuego:~/reports/liferay.bicho$ /home/lcanas/repos/Bicho/bicho -g --db-user-out=root --db-password-out= --db-database-out=lcanas_bicho_liferay_1250 -d 1 -b jira -u http://issues.liferay.com/browse/AUI
Checking URL: http://issues.liferay.com
DBG: [02/Mar/2013-00:39:04] Bicho object created, options and backend initialized
Running Bicho with delay of 1 seconds
DBG: [02/Mar/2013-00:39:05] Last bugs cached were modified on: 2013-02-22
DBG: [02/Mar/2013-00:39:05] Getting number of issues: http://issues.liferay.com/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?pid=AUI&sorter/field=updated&sorter/order=INC&updated:after=2013-02-22&tempMax=1
Total bugs 12
DBG: [02/Mar/2013-00:39:05] http://issues.liferay.com/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?pid=AUI&sorter/field=updated&sorter/order=INC&updated:after=2013-02-22&tempMax=10&pager/start=0
DBG: [02/Mar/2013-00:39:08] Bug activity: http://issues.liferay.com/browse/AUI-831?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel
Traceback (most recent call last):
  File "/home/lcanas/repos/Bicho/Bicho/backends/jira.py", line 861, in analyze_bug_list
    issues = handler.getIssues()
  File "/home/lcanas/repos/Bicho/Bicho/backends/jira.py", line 726, in getIssues
    bicho_bugs.append(self.getIssue(bug))
  File "/home/lcanas/repos/Bicho/Bicho/backends/jira.py", line 769, in getIssue
    changes = parser.parse_changes()
  File "/home/lcanas/repos/Bicho/Bicho/backends/jira.py", line 373, in parse_changes
    date = parse(raw_date).replace(tzinfo=None)
  File "/usr/lib/python2.7/dist-packages/dateutil/parser.py", line 697, in parse
    return DEFAULTPARSER.parse(timestr, **kwargs)
  File "/usr/lib/python2.7/dist-packages/dateutil/parser.py", line 301, in parse
    res = self._parse(timestr, **kwargs)
  File "/usr/lib/python2.7/dist-packages/dateutil/parser.py", line 349, in _parse
    l = _timelex.split(timestr)
  File "/usr/lib/python2.7/dist-packages/dateutil/parser.py", line 143, in split
    return list(cls(s))
  File "/usr/lib/python2.7/dist-packages/dateutil/parser.py", line 137, in next
    token = self.get_token()
  File "/usr/lib/python2.7/dist-packages/dateutil/parser.py", line 68, in get_token
    nextchar = self.instream.read(1)
TypeError: 'NoneType' object is not callable
canasdiaz commented 11 years ago

Depending on the JIRA instance, we can have the date in the following "formats":