summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Nitrate.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Nitrate.py b/Nitrate.py
index fdd68d9..b2b1f9a 100644
--- a/Nitrate.py
+++ b/Nitrate.py
@@ -1738,6 +1738,9 @@ class TestPlan(Mutable):
testplanhash = self._server.TestPlan.get(self.id)
log.debug("Initializing test plan " + self.identifier)
log.debug(pretty(testplanhash))
+ if not "plan_id" in testplanhash:
+ log.error(pretty(testplanhash))
+ raise NitrateError("Failed to initialize " + self.identifier)
# Set up attributes
self._author = User(testplanhash["author_id"])