examples: explicitly catch "Exception" in "ovs-external-ids.py"
lgtm.com warns about unqualified "except". This catches any "BaseException", when we really only should handle "Exception" here.
This commit is contained in:
@@ -68,7 +68,7 @@ def can_sudo():
|
||||
).returncode
|
||||
== 0
|
||||
)
|
||||
except:
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user