Raise error if csp estimate is not of proper type

This commit is contained in:
Patrick Smith
2019-01-22 11:47:54 -05:00
parent 30ebebb13a
commit f580f69d35
4 changed files with 42 additions and 1 deletions

View File

@@ -86,6 +86,8 @@ class TaskOrder(Base, mixins.TimestampsMixin):
self._csp_estimate = Attachment.attach(
new_csp_estimate, "task_order", self.id
)
else:
raise TypeError("Could not set csp_estimate with invalid type")
@property
def is_submitted(self):