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

Cannot extract data from microsoft/vscode #6

Closed
peti2001 opened this issue Jul 4, 2019 · 1 comment
Closed

Cannot extract data from microsoft/vscode #6

peti2001 opened this issue Jul 4, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@peti2001
Copy link
Collaborator

peti2001 commented Jul 4, 2019

When you try to calculate the private repo zip from https://github.com/c the script dies with an error:

Traceback (most recent call last):
  File "src/main.py", line 20, in <module>
    ar.create_commits_entity_from_branch(branch.name)
  File "[...]/repo_info_extractor/src/analyze_repo.py", line 34, in create_commits_entity_from_branch
    self.commit_list[commit.hexsha] = Commit(commit.author.name, commit.author.email, commit.committed_datetime, commit.hexsha, commit.parents, branch, self.skip_obfuscation)
  File "[...]/repo_info_extractor/src/entity/commit.py", line 91, in _init_
    self.obfuscate()
  File "[...]/repo_info_extractor/src/entity/commit.py", line 103, in obfuscate
    md5_hash.update(self.author_email.encode('utf-8'))
AttributeError: 'NoneType' object has no attribute 'encode'

It is happening if there is a commit with an author who has no email or name.

@peti2001 peti2001 added the bug Something isn't working label Jul 4, 2019
@peti2001
Copy link
Collaborator Author

peti2001 commented Jul 4, 2019

Fixed

@peti2001 peti2001 closed this as completed Jul 4, 2019
@peti2001 peti2001 reopened this Jul 4, 2019
@peti2001 peti2001 closed this as completed Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant