applied the except and raise fixers to the master branch to close the gap with py3
[nepi.git] / src / nepi / execution / resource.py
index 89a395d..525b8fd 100644 (file)
@@ -838,7 +838,7 @@ class ResourceManager(Logger):
                 if not rm.get('critical'):
                     continue
                 msg = "Resource can not wait for FAILED RM %d. Setting Resource to FAILED"
-                raise RuntimeError, msg
+                raise RuntimeError(msg)
 
             # If the RM state is lower than the requested state we must
             # reschedule (e.g. if RM is READY but we required STARTED).