MCPcopy Create free account
hub / github.com/bterwijn/memory_graph / fun2

Function fun2

src/exceptions.py:1–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1def fun2():
2 try:
3 d = [0] * 3
4 for i in range(6):
5 try:
6 print(f'{i=}')
7 d[i] = i # raises IndexError when i>=3
8 except ZeroDivisionError as e:
9 print(type(e), e)
10 except AssertionError as e:
11 print(type(e), e)
12 print('fun2() returns')
13
14def fun1():
15 try:

Callers 1

fun1Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected