Minor cleanup.
This commit is contained in:
@@ -535,11 +535,12 @@ def interp(stack=(), dictionary=None):
|
|||||||
stack, _, dictionary = run(text, stack, dictionary)
|
stack, _, dictionary = run(text, stack, dictionary)
|
||||||
except UnknownSymbolError as sym:
|
except UnknownSymbolError as sym:
|
||||||
print('Unknown:', sym)
|
print('Unknown:', sym)
|
||||||
except StackUnderflowError as e:
|
except (
|
||||||
print(e) # 'Not enough values on stack.'
|
StackUnderflowError,
|
||||||
except NotAnIntError as e:
|
NotABoolError,
|
||||||
print(e)
|
NotAListError,
|
||||||
except NotAListError as e:
|
NotAnIntError,
|
||||||
|
) as e:
|
||||||
print(e)
|
print(e)
|
||||||
except SystemExit as e:
|
except SystemExit as e:
|
||||||
raise SystemExit from e
|
raise SystemExit from e
|
||||||
|
|||||||
Reference in New Issue
Block a user