it is IndexError, not IndexDefect, in 1.2

This commit is contained in:
narimiran
2021-08-24 15:05:17 +02:00
parent 2d06867388
commit 2a72eeafdf

View File

@@ -598,6 +598,6 @@ block t18643:
let b = 9999999
try:
echo a[b]
except IndexDefect:
except IndexError:
caught = true
doAssert caught, "IndexDefect not caught!"
doAssert caught, "IndexError not caught!"