This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,7 @@
|
||||
# probe: what does reading a missing Dict key raise, and how is it printed?
|
||||
def main() raises:
|
||||
var d = {"a": 1}
|
||||
try:
|
||||
print(d["b"])
|
||||
except e:
|
||||
print("caught:", e)
|
||||
Reference in new issue
Block a user