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

first comment display #22

Open
grantbow opened this issue Jul 23, 2015 · 2 comments
Open

first comment display #22

grantbow opened this issue Jul 23, 2015 · 2 comments

Comments

@grantbow
Copy link

$ git issues comment 1 first-traceback
$ git issues show 1

Traceback (most recent call last):
  File "/home/user01/src/git-issues-git/.gitissues/git-issues", line 1124, in 
    for comment in issue.comments])
AttributeError: GitComment instance has no attribute 'comments'
@grantbow
Copy link
Author

needed an if statement
if hasattr(issue, 'comments'):

@501st-alpha1
Copy link

I ran into this issue too. Looks like the object taken from issueSet on line 1121 of the main script was a GitComment instead of a GitIssue. The above fix didn't work for me.

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