diff --git a/lib/jqueue.py b/lib/jqueue.py
index 29896c088b3d28fa324537687cf0955409adbb55..4b25e1b27f00d168d1ca3803725e86becae0aec2 100644
--- a/lib/jqueue.py
+++ b/lib/jqueue.py
@@ -2056,13 +2056,14 @@ class JobQueue(object):
 
     job = _QueuedJob(self, job_id, ops, True)
 
-    # Check priority
     for idx, op in enumerate(job.ops):
+      # Check priority
       if op.priority not in constants.OP_PRIO_SUBMIT_VALID:
         allowed = utils.CommaJoin(constants.OP_PRIO_SUBMIT_VALID)
         raise errors.GenericError("Opcode %s has invalid priority %s, allowed"
                                   " are %s" % (idx, op.priority, allowed))
 
+      # Check job dependencies
       dependencies = getattr(op.input, opcodes.DEPEND_ATTR, None)
       if not opcodes.TNoRelativeJobDependencies(dependencies):
         raise errors.GenericError("Opcode %s has invalid dependencies, must"