From 2f15e04f5744503176f024443934a520aa18422a Mon Sep 17 00:00:00 2001 From: Florent Lamiraux <florent@laas.fr> Date: Mon, 29 Nov 2021 14:04:02 +0100 Subject: [PATCH] Update scripts/run_command Co-authored-by: Guilhem Saurel <guilhem.saurel@laas.fr> --- scripts/run_command | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/run_command b/scripts/run_command index 593b83a..f69b5db 100755 --- a/scripts/run_command +++ b/scripts/run_command @@ -88,11 +88,7 @@ class RosShell(InteractiveConsole): return self.runcode(c) else: return True - except SyntaxError: - self.showsyntaxerror() - self.cache = "" - return False - except OverflowError: + except (SyntaxError, OverflowError): self.showsyntaxerror() self.cache = "" return False -- GitLab