]> mj.ucw.cz Git - moe.git/blobdiff - t/moe/box.py
Judges can return single-line verdicts on stderr instead of producing a status file
[moe.git] / t / moe / box.py
index 321eedd15fe585e0e49a0ad883f374970baf0ba1..dfb9282aa626123712f7aca76a69c3c0b016b327 100644 (file)
@@ -21,7 +21,7 @@ def init(e):
     e.log.verbose("Sandbox directory: %s\n" % dir)
     e.log.verbose("Sandbox command: %s\n" % cmd)
     if dir == "" or not os.path.isdir(dir) or exe == "" or not os.path.isfile(exe):
-       raise moe.MoeErr, "Sandbox set up incorrectly"
+       raise moe.MoeError, "Sandbox set up incorrectly"
 
 def clean(e):
     moe.util.remove_tree_contents(e.cfgs["BOXDIR"])
@@ -44,7 +44,7 @@ def run(e, opts, cmd):
     if os.WIFEXITED(st):
        rc = os.WEXITSTATUS(st)
        if rc > 1:
-           raise moe.MoeErr, "Sandbox failed with rc=%d" % rc
+           raise moe.MoeError, "Sandbox failed with rc=%d" % rc
        return rc
     else:
-       raise moe.MoeErr, "Sandbox failed with exit status 0x%04x" % rc
+       raise moe.MoeError, "Sandbox failed with exit status 0x%04x" % rc