code: def _check_object_exists(self):
          
          if not DB.get_keys(self.key):
              raise KeyError("Object with key '{}' not exist".format(self.key))
docs: Raise a KeyError if the scheduling object doesnt exist.
  
          Raise:
              KeyError, if the object doesnt exist in the database.