use specialized exception classes
This commit is contained in:
@@ -195,7 +195,7 @@ PyObject* InteractiveInterpreter::compile(const char* source) const
|
||||
return eval;
|
||||
} else {
|
||||
// do not throw Base::PyException as this clears the error indicator
|
||||
throw Base::Exception();
|
||||
throw Base::RuntimeError("Code evaluation failed");
|
||||
}
|
||||
|
||||
// can never happen
|
||||
|
||||
Reference in New Issue
Block a user