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

TypeError: sequence item 1: expected str instance, NoneType found #16

Closed
jpopelka opened this issue Mar 14, 2018 · 1 comment
Closed

Comments

@jpopelka
Copy link

$ git clone https://github.com/fabioparra/TypeScript.git; cd TypeScript
$ git checkout bc691ef78ec
$ ipython3
from git2json.parser import parse_commits
from git2json import run_git_log
list(parse_commits(run_git_log('.git')))

TypeError                                 Traceback (most recent call last)
<ipython-input-4-a4fe5c202781> in <module>()
----> 1 list(parse_commits(run_git_log('.git')))

~/.virtualenvs/bayesian/lib/python3.6/site-packages/git2json/parser.py in parse_commits(data)
     47         full_commit = rc.groups()[0]
     48         parts = RE_COMMIT.match(full_commit).groupdict()
---> 49         parsed_commit = parse_commit(parts)
     50         yield parsed_commit
     51 

~/.virtualenvs/bayesian/lib/python3.6/site-packages/git2json/parser.py in parse_commit(parts)
     71         parse_message_line(msgline)
     72         for msgline in
---> 73         parts['message'].splitlines()
     74     )
     75     commit['changes'] = [

TypeError: sequence item 1: expected str instance, NoneType found

@tarmstrong
Copy link
Owner

tarmstrong commented Mar 25, 2018

Thank you for your report! I believe this has been fixed with #17 but since I wasn't able to reproduce this problem locally, it would be helpful to have your confirmation that it is fixed.

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