#6667 StopIteration error on a google code ticket's mod_date logic

v1.0.1
closed
General
2015-08-20
2013-09-18
No
Importing the Issues data from the pychess Google Code project to the brondsem-pychess Allura project failed with the error:

Traceback (most recent call last):
  File "/var/local/allura/ForgeImporters/forgeimporters/base.py", line 97, in import_tool
    mount_point=mount_point, mount_label=mount_label, **kw)
  File "/var/local/allura/ForgeImporters/forgeimporters/google/tracker.py", line 138, in import_tool
    self.process_fields(ticket, issue)
  File "/var/local/allura/ForgeImporters/forgeimporters/google/tracker.py", line 178, in process_fields
    ticket.mod_date = datetime.strptime(issue.get_issue_mod_date(), '%c')
  File "/var/local/allura/ForgeImporters/forgeimporters/google/__init__.py", line 165, in get_issue_mod_date
    last_update = Comment(comments[-1])
  File "/var/local/allura/ForgeImporters/forgeimporters/google/__init__.py", line 241, in __init__
    self._get_updates(tag)
  File "/var/local/allura/ForgeImporters/forgeimporters/google/__init__.py", line 249, in _get_updates
    self.updates = {field: updates.next() for field in updates}
  File "/var/local/allura/ForgeImporters/forgeimporters/google/__init__.py", line 249, in <dictcomp>
    self.updates = {field: updates.next() for field in updates}
StopIteration

Discussion

  • Tim Van Steenburgh

    • status: open --> in-progress
    • assigned_to: Tim Van Steenburgh
     
  • Tim Van Steenburgh

    forge:tv/6667

     
  • Tim Van Steenburgh

    • status: in-progress --> code-review
     
  • Dave Brondsema

    Dave Brondsema - 2013-09-19
    • status: code-review --> closed
    • QA: Dave Brondsema
    • Size: --> 2
     

Log in to post a comment.