@anonymous/

DependentUnselfishDevelopment

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
def decorator(cb):
  def wrapper():
    try:
      cb()
    except Exception as e:
      return e

    print("WILL NEVER CALLED AFTER RETURN");
  
  return wrapper

@decorator
def f():
  raise Exception("ERROR")

  return "VALUE";
 
print(f())