Fix error message when Jump to Cursor from the last line (PY-26130)

If the jump starts from the last line, the command doesn't receive a response, so it's better to suppress an error message.
This commit is contained in:
Elizaveta Shashkova
2017-10-03 16:06:32 +03:00
parent 413ce9c3bd
commit 868cc9f168
@@ -407,7 +407,14 @@ public class RemoteDebugger implements ProcessDebugger {
@Nullable String functionName,
@NotNull PyDebugCallback<Pair<Boolean, String>> callback) {
final SetNextStatementCommand command = new SetNextStatementCommand(this, threadId, sourcePosition, functionName, callback);
execute(command);
try {
command.execute();
}
catch (PyDebuggerException e) {
if (isConnected()) {
LOG.error(e);
}
}
}
@Override