mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-04 15:21:12 +00:00
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:
parent
d5e8d1382b
commit
fdc0285e68
|
@ -68,7 +68,7 @@ def can_sudo():
|
|||
).returncode
|
||||
== 0
|
||||
)
|
||||
except:
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue