pip install fuckit
python
from fuckit import fuckit
def hello():
print("Hello, World!")
undefined_variable = 1/0
print("This line will not be executed.")
fuckit(hello)
python
from fuckit import fuckit
def slow_function():
pass
python
from fuckit import fuckit
def do_something():
pass
fuckit(do_something, ignore_exceptions=(ValueError, TypeError))
python
from fuckit import fuckit
def buggy_code():
pass
fuckit(buggy_code, debug=1)
python
from fuckit import fuckit
def risky_code():
pass
fuckit(risky_code, try_except=1)