def delete_message(db_message: DBMessage) -> DBMessage: try: db_message.is_delete = True except AttributeError: raise DBMessageNotExistsException return db_message
def delete_message(db_message: DBMessage) -> DBMessage: db_message.is_delete = True return db_message