Commit c910bccb authored by Guido Trotter's avatar Guido Trotter
Browse files

Fix a TODO in _QueuedJob



Rather than raising Exception use GenericError and explain a bit better
what happened.
Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 57d56130
......@@ -177,8 +177,7 @@ class _QueuedJob(object):
"""
if not ops:
# TODO: use a better exception
raise Exception("No opcodes")
raise errors.GenericError("A job needs at least one opcode")
self.queue = queue
self.id = job_id
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment