Replace unused exception variable with wildcard