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:
Thomas Haller
2021-05-27 09:13:24 +02:00
parent d5e8d1382b
commit fdc0285e68

View File

@@ -68,7 +68,7 @@ def can_sudo():
).returncode ).returncode
== 0 == 0
) )
except: except Exception:
return False return False