Skip to content

Commit

Permalink
fix: handle app not found under GH frappe erpnext orgs
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed May 4, 2020
1 parent 03e512f commit b3842d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bench/app.py
Expand Up @@ -111,6 +111,9 @@ def get_app(git_url, branch=None, bench_path='.', skip_assets=False, verbose=Fal
if git_url == data['name']:
git_url = 'https://github.com/{org}/{app}'.format(org=org, app=git_url)
break
else:
bench.utils.log("App {app} not found".format(app=git_url), level=2)
sys.exit(1)

# Gets repo name from URL
repo_name = git_url.rsplit('/', 1)[1].rsplit('.', 1)[0]
Expand Down Expand Up @@ -407,7 +410,7 @@ def switch_branch(branch, apps=None, bench_path='.', upgrade=False, check_upgrad
if version_upgrade[0] and upgrade:
update_requirements()
update_node_packages()
reload_module(utils)
reload_module(bench.utils)
backup_all_sites()
patch_sites()
build_assets()
Expand Down

0 comments on commit b3842d9

Please sign in to comment.