applied the except and raise fixers to the master branch to close the gap with py3
[nepi.git] / src / nepi / resources / planetlab / ns3 / tuntapfdlink.py
index 6909571..510a595 100644 (file)
@@ -42,7 +42,7 @@ class PlanetlabTunTapFdLink(LinuxTunTapFdLink):
             if not devices or len(devices) != 1: 
                 msg = "planetlab::ns3::TunTapFdLink must be connected to exactly one FdNetDevice"
                 self.error(msg)
-                raise RuntimeError, msg
+                raise RuntimeError(msg)
 
             self._fdnetdevice = devices[0]
 
@@ -65,7 +65,7 @@ class PlanetlabTunTapFdLink(LinuxTunTapFdLink):
             if not devices or len(devices) != 1: 
                 msg = "planetlab::ns3::TunTapFdLink must be connected to exactly one PlanetlabTap"
                 self.error(msg)
-                raise RuntimeError, msg
+                raise RuntimeError(msg)
 
             self._tap = devices[0]