applied the except and raise fixers to the master branch to close the gap with py3
[nepi.git] / src / nepi / resources / ns3 / ns3route.py
index db2c147..15d4005 100644 (file)
@@ -53,7 +53,7 @@ class NS3Route(NS3Base):
         if not nodes: 
             msg = "Device not connected to node"
             self.error(msg)
-            raise RuntimeError, msg
+            raise RuntimeError(msg)
 
         return nodes[0]
 
@@ -83,7 +83,7 @@ class NS3Route(NS3Base):
             msg = "Could not configure route %s/%s hop: %s" % (network, prefix, 
                     nexthop)
             self.error(msg)
-            raise RuntimeError, msg
+            raise RuntimeError(msg)
 
     def _connect_object(self):
         node = self.node