Commit 3ae70d76 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Fix LU processor's GetECId



The exception was never actually raised.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarAdeodato Simo <dato@google.com>
parent 73f1d185
......@@ -401,8 +401,12 @@ class Processor(object):
self.Log(" - INFO: %s" % message)
def GetECId(self):
"""Returns the current execution context ID.
"""
if not self._ec_id:
errors.ProgrammerError("Tried to use execution context id when not set")
raise errors.ProgrammerError("Tried to use execution context id when"
" not set")
return self._ec_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