  @contextmanager def ErrorManaged():     try:         yield     except Exception as e:         log_exception(e)  def _get_units(self):     for list0 in self.get_list0():         with ErrorManaged():                           for list0 in self.get_list0(list0):                 with ErrorManaged():                     for unit in list0:                         with ErrorManaged():                             