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

Create more useful error when organization is incorrect #354

Open
lwasser opened this issue Jan 19, 2021 · 0 comments
Open

Create more useful error when organization is incorrect #354

lwasser opened this issue Jan 19, 2021 · 0 comments

Comments

@lwasser
Copy link

lwasser commented Jan 19, 2021

i am getting the error below when i run abc-new-template --mode merge --github

Traceback (most recent call last):
  File "/Users/leahwasser/opt/miniconda3/envs/earth-analytics-python/bin/abc-new-template", line 33, in <module>
    sys.exit(load_entry_point('abc-classroom', 'console_scripts', 'abc-new-template')())
  File "/Users/leahwasser/Documents/github/0-python/abc-classroom/abcclassroom/__main__.py", line 143, in new_template
    template.new_update_template(args)
  File "/Users/leahwasser/Documents/github/0-python/abc-classroom/abcclassroom/template.py", line 31, in new_update_template
    create_template(
  File "/Users/leahwasser/Documents/github/0-python/abc-classroom/abcclassroom/template.py", line 112, in create_template
    create_or_update_remote(
  File "/Users/leahwasser/Documents/github/0-python/abc-classroom/abcclassroom/template.py", line 142, in create_or_update_remote
    gh.create_repo(organization, repo_name, token)
  File "/Users/leahwasser/Documents/github/0-python/abc-classroom/abcclassroom/github.py", line 220, in create_repo
    organization = github_obj.organization(org)
  File "/Users/leahwasser/opt/miniconda3/envs/earth-analytics-python/lib/python3.8/site-packages/github3/github.py", line 1566, in organization
    json = self._json(self._get(url), 200)
  File "/Users/leahwasser/opt/miniconda3/envs/earth-analytics-python/lib/python3.8/site-packages/github3/models.py", line 156, in _json
    raise exceptions.error_for(response)
github3.exceptions.NotFoundError: 404 Not Found

i recently got the above error - t he i ssue was t hat the organization n ame was i ncorrect in my config file BUT the error outpupt wsn't helpful. it would be nice to atleast have some helpful messaging that says - i'm trying to push to XXX organization

@lwasser lwasser changed the title push to github is not workigna s e xpected Create more useful error when organization is incorrect Jan 19, 2021
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