mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
addons: batman_adv: drop unnecessary exception clause
The exception could have never come from read_file_oneline, also value was an undefined variable, so it would have thrown an exception while handling an exception thus being useless anyway. Signed-off-by: Markus Hauschild <markus@moepman.eu>
This commit is contained in:
@ -138,8 +138,6 @@ class batman_adv(Addon, moduleBase):
|
||||
return self.read_file_oneline(attr_file_path)
|
||||
except IOError as i:
|
||||
raise Exception("_read_current_batman_attr (%s) %s" % (attr, i))
|
||||
except ValueError:
|
||||
raise Exception("_read_current_batman_attr: Integer value expected, got: %s" % value)
|
||||
|
||||
def _set_batman_attr(self, ifaceobj, attr, value):
|
||||
if attr not in self._batman_attrs:
|
||||
|
Reference in New Issue
Block a user