Use `logging.error`, not `.warning`