applied the except and raise fixers to the master branch to close the gap with py3
[nepi.git] / src / nepi / resources / netns / netnsbase.py
index dcf27cb..3fee62e 100644 (file)
@@ -57,7 +57,7 @@ class NetNSBase(ResourceManager):
         objects to be deployed before proceeding with the deployment
 
         """
-        raise RuntimeError, "No dependencies defined!"
+        raise RuntimeError("No dependencies defined!")
 
     def _instantiate_object(self):
         pass
@@ -99,7 +99,7 @@ class NetNSBase(ResourceManager):
         else:
             msg = " Failed "
             self.error(msg, out, err)
-            raise RuntimeError, msg
+            raise RuntimeError(msg)
 
     def do_stop(self):
         if self.state == ResourceState.STARTED: