Turn assert into a warning instead.