mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
10 lines
169 B
Python
10 lines
169 B
Python
import traceback
|
|
|
|
try:
|
|
a = {'123': 4}
|
|
b = a[6]
|
|
except KeyError:
|
|
s = traceback.format_exc()
|
|
|
|
assert s == r'''Traceback (most recent call last):
|
|
KeyError: 6''' |