mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 15:48:06 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ def can_sudo():
|
|||
).returncode
|
||||
== 0
|
||||
)
|
||||
except:
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue