Bring it inline with Nim version.

See https://git.sr.ht/~sforman/joytest
This commit is contained in:
Simon Forman
2021-04-09 17:32:51 -07:00
parent 49bcab2e91
commit 810a6afdbb
2 changed files with 17 additions and 4 deletions
+2 -2
View File
@@ -140,8 +140,8 @@ def interp(stack=(), dictionary=None):
print('Not enough values on stack.')
except NotAnIntError:
print('Not an integer.')
except NotAListError:
print('Not a list.')
except NotAListError as e:
print(e) # 'Not a list.'
except:
print_exc()
print(stack_to_string(stack))