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

NameError: global name 'arg' is not defined #69

Closed
epfremmer opened this issue Oct 11, 2017 · 3 comments
Closed

NameError: global name 'arg' is not defined #69

epfremmer opened this issue Oct 11, 2017 · 3 comments

Comments

@epfremmer
Copy link
Contributor

Ran into a python error while testing backing up my organization's repositories.

# github-backup $ORGANIZATION --output-directory ./ --organization --token $GITHUB_ACCESS_TOKEN --all --private --fork --prefer-ssh --name-regex $REPO_NAME
Backing up user <REDACTED> to /root/github_backups
Retrieving repositories
Filtering repositories
Backing up repositories
Traceback (most recent call last):
  File "/usr/local/bin/github-backup", line 885, in <module>
    main()
  File "/usr/local/bin/github-backup", line 880, in main
    backup_repositories(args, output_directory, repositories)
  File "/usr/local/bin/github-backup", line 555, in backup_repositories
    lfs_clone=arg.lfs_clone)
NameError: global name 'arg' is not defined

It looks like there is a reference to an undefined variable in:

Probably just a typo arg instead of args. I tested changing this to args and the backup script worked great!

@josegonzalez
Copy link
Owner

Mind filing a pr with the fix? Thanks.

/cc @pieterclaerhout

@epfremmer
Copy link
Contributor Author

no problem

epfremmer added a commit to epfremmer/python-github-backup that referenced this issue Oct 11, 2017
@josegonzalez
Copy link
Owner

Closed by #70

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