Skip to content

Commit

Permalink
fix: use reload only if imported
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarvora authored Jan 29, 2019
1 parent fd4be52 commit 4d02801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,10 @@ def switch_branch(branch, apps=None, bench_path='.', upgrade=False, check_upgrad
if version_upgrade[0] and upgrade:
if sys.version_info >= (3, 4):
from importlib import reload
reload(utils)
update_requirements()
update_node_packages()
pre_upgrade(version_upgrade[1], version_upgrade[2])
reload(utils)
backup_all_sites()
patch_sites()
build_assets()
Expand Down

0 comments on commit 4d02801

Please sign in to comment.