Personally, I find the errorString
“syntax” to “see” when an exception happens confusing. It is error prone in the best case.
Imo, valid syntax is either
0try:
1 something()
2 assert(False)
3except:
4 assert(thing())
or
0try:
1 something()
2except:
3 assert(thing())
4else:
5 assert(False)