Update exception variable names
Consistently use `ex` for caught exception and `cause` for Exception constructor arguments. Issue gh-8945
This commit is contained in:
@@ -52,8 +52,8 @@ public class PythonInterpreterPreInvocationAdvice implements PreInvocationAuthor
|
||||
try {
|
||||
python.execfile(scriptResource.getInputStream());
|
||||
}
|
||||
catch (IOException e) {
|
||||
throw new IllegalArgumentException("Couldn't run python script, " + script, e);
|
||||
catch (IOException ex) {
|
||||
throw new IllegalArgumentException("Couldn't run python script, " + script, ex);
|
||||
}
|
||||
|
||||
PyObject allowed = python.get("allow");
|
||||
|
||||
Reference in New Issue
Block a user