From 4d02801f5328e02cd0e77fc1a5bd6223800f1411 Mon Sep 17 00:00:00 2001 From: Sagar Vora Date: Tue, 29 Jan 2019 19:51:12 +0530 Subject: [PATCH] fix: use reload only if imported --- bench/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/app.py b/bench/app.py index b4249122..ae57cb7c 100755 --- a/bench/app.py +++ b/bench/app.py @@ -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()