The exception was never actually raised.
Signed-off-by: Michael Hanselmann <[email protected]>
---
lib/mcpu.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/lib/mcpu.py b/lib/mcpu.py
index 7210178..c40c1a2 100644
--- a/lib/mcpu.py
+++ b/lib/mcpu.py
@@ -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
--
1.7.3.5