X-Git-Url: http://git.onelab.eu/?p=nepi.git;a=blobdiff_plain;f=src%2Fnepi%2Fresources%2Flinux%2Froute.py;h=28f61605d42c446dd960dd69ac1e4df721b34a9b;hp=7c6d2926afc8ba591b388f1e52335d2f5dd57c53;hb=6285ca51026efb69642eea9dfc7c480e722d84a9;hpb=cb5d027b813a27d7de263653e1a8e0cef5490f0a diff --git a/src/nepi/resources/linux/route.py b/src/nepi/resources/linux/route.py index 7c6d2926..28f61605 100644 --- a/src/nepi/resources/linux/route.py +++ b/src/nepi/resources/linux/route.py @@ -55,8 +55,8 @@ class LinuxRoute(LinuxApplication): elif tun: self._device = tun[0] elif interface: self._device = interface[0] else: - raise RuntimeError, "linux::Routes must be connected to a "\ - "linux::TAP, linux::TUN, or linux::Interface" + raise RuntimeError("linux::Routes must be connected to a "\ + "linux::TAP, linux::TUN, or linux::Interface") return self._device @property @@ -108,7 +108,7 @@ class LinuxRoute(LinuxApplication): else: msg = " Failed to execute command '%s'" % command self.error(msg, out, err) - raise RuntimeError, msg + raise RuntimeError(msg) def do_stop(self): command = self.get('command') or ''