()
| 1 | import memory_graph as mg |
| 2 | mg.config.type_to_string[BaseException] = lambda data: mg.utils.prep_exception_str((mg.utils.exception_to_string_no_path(data))) |
| 3 | def fun3(): |
| 4 | d = [0] * 3 |
| 5 | for i in range(4): |
| 6 | d[i] = i # throws IndexError when i = 3 |
| 7 | |
| 8 | def fun2(): |
| 9 | fun3() |