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

--pull-details not working: TypeError #115

mibe opened this issue Jun 9, 2019 · 2 comments


None yet
2 participants
Copy link

commented Jun 9, 2019

I'm getting a TypeError error when backing up my repos, specifically the comments to a pull request.

Here are the last relevant lines:

Saving 23 pull requests to disk
Traceback (most recent call last):
  File "/usr/local/bin/github-backup", line 1035, in <module>
  File "/usr/local/bin/github-backup", line 1030, in main
    backup_repositories(args, output_directory, repositories)
  File "/usr/local/bin/github-backup", line 691, in backup_repositories
    backup_pulls(args, repo_cwd, repository, repos_template)
  File "/usr/local/bin/github-backup", line 813, in backup_pulls
    pulls[number]['comment_data'] = retrieve_data(args, template)
TypeError: list indices must be integers or slices, not str

This was the command line:
github-backup -t $TOKEN --all --pull-details --gists -o . mibe

$ github-backup --version:
github-backup 0.23.0
$ python3 --version:
Python 3.5.3

This comment has been minimized.

Copy link

commented Jun 9, 2019

Pull requests welcome.

@mibe mibe changed the title TypeError: list indices must be integers or slices, not str --pull-details not working: TypeError Jun 10, 2019


This comment has been minimized.

Copy link

commented Jun 10, 2019

It looks like this bug is specific to the --pull-details argument. The error disappears when omitting this parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.