Skip to content

Crash with undefined 'Mergedinto' #19

@scamille

Description

@scamille

I was trying to migrate http://code.google.com/p/simulationcraft/ to Github.

http://code.google.com/p/simulationcraft/issues/detail?id=100 has a "Mergedinto: -" flag/status, where I assume that the Issue number it originally pointed at got lost.

Now google-code-issues-migrator runs into a problem on line 117/118:

if comment.updates.mergedIntoUpdate:
        return "_This issue is a duplicate of #%d_" % (options.base_id + int(comment.updates.mergedIntoUpdate.text))

Traceback:

File "migrateissues.py", line 118, in format_comment
    return "_This issue is a duplicate of #%d_" % (options.base_id + int(comment.updates.mergedIntoUpdate.text))
ValueError: invalid literal for int() with base 10: '-'

When trying to convert the false Mergedinto Number to int.

I've no Python experience at all, otherwise I try solving it myself. But I hope the problem-description is detailed enough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions