X-Git-Url: http://git.onelab.eu/?p=nepi.git;a=blobdiff_plain;f=src%2Fnepi%2Fresources%2Flinux%2Fns3%2Ftuntapfdlink.py;h=3fac31fb8131b4d12cd8010a433f89e91fe9d6b6;hp=be6f9822dc6894c0d2ab56952da8b82b560c405b;hb=6285ca51026efb69642eea9dfc7c480e722d84a9;hpb=cb5d027b813a27d7de263653e1a8e0cef5490f0a diff --git a/src/nepi/resources/linux/ns3/tuntapfdlink.py b/src/nepi/resources/linux/ns3/tuntapfdlink.py index be6f9822..3fac31fb 100644 --- a/src/nepi/resources/linux/ns3/tuntapfdlink.py +++ b/src/nepi/resources/linux/ns3/tuntapfdlink.py @@ -46,7 +46,7 @@ class LinuxTunTapFdLink(LinuxApplication): if not devices or len(devices) != 1: msg = "TunTapFdLink must be connected to exactly one FdNetDevice" self.error(msg) - raise RuntimeError, msg + raise RuntimeError(msg) self._fdnetdevice = devices[0] @@ -69,7 +69,7 @@ class LinuxTunTapFdLink(LinuxApplication): if not devices or len(devices) != 1: msg = "TunTapLink must be connected to exactly one Tap or Tun" self.error(msg) - raise RuntimeError, msg + raise RuntimeError(msg) self._tap = devices[0] @@ -106,7 +106,7 @@ class LinuxTunTapFdLink(LinuxApplication): self.fdnode.get("hostname"): msg = "Tap and FdNetDevice are not in the same host" self.error(msg) - raise RuntimeError, msg + raise RuntimeError(msg) self.send_address = self.fdnetdevice.recv_fd() self.set("command", self._start_command) @@ -139,7 +139,7 @@ class LinuxTunTapFdLink(LinuxApplication): else: msg = " Failed to execute command '%s'" % command self.error(msg, out, err) - raise RuntimeError, msg + raise RuntimeError(msg) @property def _start_command(self):