From f08db94db1e16ef40a2c8eb6f52f8edf46699743 Mon Sep 17 00:00:00 2001 From: Simon Forman Date: Thu, 8 Sep 2022 14:25:02 -0700 Subject: [PATCH] Minor cleanup. --- implementations/Python/simplejoy.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/implementations/Python/simplejoy.py b/implementations/Python/simplejoy.py index 76563da..35d99ae 100755 --- a/implementations/Python/simplejoy.py +++ b/implementations/Python/simplejoy.py @@ -535,11 +535,12 @@ def interp(stack=(), dictionary=None): stack, _, dictionary = run(text, stack, dictionary) except UnknownSymbolError as sym: print('Unknown:', sym) - except StackUnderflowError as e: - print(e) # 'Not enough values on stack.' - except NotAnIntError as e: - print(e) - except NotAListError as e: + except ( + StackUnderflowError, + NotABoolError, + NotAListError, + NotAnIntError, + ) as e: print(e) except SystemExit as e: raise SystemExit from e