Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to import tickets #1

Closed
pioto opened this issue Apr 23, 2009 · 4 comments
Closed

Failure to import tickets #1

pioto opened this issue Apr 23, 2009 · 4 comments

Comments

@pioto
Copy link

pioto commented Apr 23, 2009

I get this backtrace:

Traceback (most recent call last):
  File "/home/pioto/git/trac2issues/trac2issues.py", line 233, in <module>
    ImportTickets()
  File "/home/pioto/git/trac2issues/trac2issues.py", line 67, in __init__
    self._fetchTickets()
  File "/home/pioto/git/trac2issues/trac2issues.py", line 104, in _fetchTickets
    'milestone': milestone.replace(' ', '_'),
AttributeError: 'NoneType' object has no attribute 'replace'
@davglass
Copy link
Owner

Sorry, I didn't see this ticket. GH didn't email it to me :(

Let me take a look and see why that would fail. Do you have tickets without a milestone?

@davglass
Copy link
Owner

Just pushed a fix for this, I think it was an milestone with no name.

@pioto
Copy link
Author

pioto commented Apr 24, 2009

Yeah, I have many tickets w/o milestones.

However, the current fix doesn't seem to be sufficient:

Traceback (most recent call last):
  File "/home/pioto/git/trac2issues/trac2issues.py", line 240, in <module>
    ImportTickets()
  File "/home/pioto/git/trac2issues/trac2issues.py", line 67, in __init__
    self._fetchTickets()
  File "/home/pioto/git/trac2issues/trac2issues.py", line 112, in _fetchTickets
    'owner': owner.replace(' ', '_'),
AttributeError: 'NoneType' object has no attribute 'replace'

Guess we have a couple of different fields that're sometimes empty :p

(It's a rather oooold trac)

@davglass
Copy link
Owner

I added a check for no owner and no reporter as well..

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants