From 28f962529effe8c41cbc874e13f85b8a04b30e35 Mon Sep 17 00:00:00 2001 From: Shlomi Bitton Date: Wed, 15 Jul 2020 17:50:12 +0300 Subject: [PATCH] Fix LGTM alerts --- show/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/show/main.py b/show/main.py index 35ee4905f8..1b7bfbd1f3 100755 --- a/show/main.py +++ b/show/main.py @@ -3439,7 +3439,7 @@ def summary(): from system_health_test import MockerChassis HealthCheckerManager = MockerManager Chassis = MockerChassis - except: + except Exception: # Normal run... # if os.geteuid(): click.echo("Root privileges are required for this operation") @@ -3481,7 +3481,7 @@ def detail(): from system_health_test import MockerChassis HealthCheckerManager = MockerManager Chassis = MockerChassis - except: + except Exception: # Normal run... # if os.geteuid(): click.echo("Root privileges are required for this operation") @@ -3553,7 +3553,7 @@ def monitor_list(): from system_health_test import MockerChassis HealthCheckerManager = MockerManager Chassis = MockerChassis - except: + except Exception: # Normal run... # if os.geteuid(): click.echo("Root privileges are required for this operation")