Merge pull request #5239 from UtahDave/develop

Don't use a bare exception
This commit is contained in:
David Boucha 2013-05-23 15:14:38 -07:00
commit 225b2d8c0f

View File

@ -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