code: def add_if_changed(self, resource):
          
          if (resource.change is not None):
              self.resources.append(resource)
          else:
              raise ChangeTypeError(resource.change)
docs: Add resource if change is not None else ChangeTypeError.