applied the except and raise fixers to the master branch to close the gap with py3
[nepi.git] / src / nepi / resources / linux / route.py
index 7c6d292..28f6160 100644 (file)
@@ -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 ''