ZEPPELIN-1716. Error of interpreter not found is not propagated to frontend.

This commit is contained in:
Jeff Zhang 2016-11-28 15:03:22 +08:00
parent e8cea41c61
commit ad7ec6373e

View file

@ -593,7 +593,12 @@ public class Paragraph extends Job implements Serializable, Cloneable {
}
private boolean isValidInterpreter(String replName) {
return factory.getInterpreter(user,
note.getId(), replName) != null;
try {
return factory.getInterpreter(user,
note.getId(), replName) != null;
} catch (InterpreterException e) {
// ignore this exception, it would be recaught when running paragraph.
return false;
}
}
}