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
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

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