mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #5239 from UtahDave/develop
Don't use a bare exception
This commit is contained in:
commit
225b2d8c0f
@ -236,7 +236,7 @@ def interfaces():
|
|||||||
item['broadcast'] = ''
|
item['broadcast'] = ''
|
||||||
try:
|
try:
|
||||||
item['broadcast'] = iface.DefaultIPGateway[0]
|
item['broadcast'] = iface.DefaultIPGateway[0]
|
||||||
except:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
item['netmask'] = iface.IPSubnet[0]
|
item['netmask'] = iface.IPSubnet[0]
|
||||||
item['label'] = iface.Description
|
item['label'] = iface.Description
|
||||||
|
Loading…
Reference in New Issue
Block a user