code: def set_text(self, text):
          
          self.text = text
          try:
              self.properties = text_to_dict(text)
          except:
              traceback.print_exc()
              self.properties = None
docs: Sets properties and text given a text field