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'] = ''
|
||||
try:
|
||||
item['broadcast'] = iface.DefaultIPGateway[0]
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
item['netmask'] = iface.IPSubnet[0]
|
||||
item['label'] = iface.Description
|
||||
|
Loading…
Reference in New Issue
Block a user