Commits

Lars Yencken  committed e2723ef

Adds error checking on slot updates.

  • Participants
  • Parent commits c8c918b

Comments (0)

Files changed (1)

             self.update(text)
 
     def update(self, text):
+        if self.is_finished:
+            raise Exception("slot already finalized, cannot update it")
+
         if isinstance(text, unicode):
             text = text.encode('utf8')