From ad000f1be7c8a74746d276e2633651513d5297ff Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Thu, 17 Mar 2022 11:41:57 +0530 Subject: [PATCH] fix: Don't handle `BaseException`s --- bench/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/app.py b/bench/app.py index cb7b0786..d7889a69 100755 --- a/bench/app.py +++ b/bench/app.py @@ -425,7 +425,7 @@ def install_resolved_deps( try: installed_branch = bench.apps.states[repo_name]["resolution"]["branch"].strip() - except: + except Exception: installed_branch = ( subprocess. check_output("git rev-parse --abbrev-ref HEAD", shell=True, cwd=path_to_app) @@ -451,7 +451,7 @@ def install_resolved_deps( is_compatible = default_branch == installed_branch else: is_compatible = installed_branch == app.tag - except: + except Exception: is_compatible = False prefix = 'C' if is_compatible else 'Inc'