py_classic_error is classic way to show errors for python users.
- easy to use
- more readable error & compact
- show error code
pip install py_classic_error
from py_classic_error import py_classic_error
numbers = [1,2,3]
try:
# now we're trying to access index doesn't contains in numbers list
print(numbers[8])
except:
py_classic_error()
-------py_classic_error-------
errtype: <class 'IndexError'>
err: list index out of range
Path: "d:\weatherapp\ll.py"
=> 11 print(numbers[8])
The unlicense
Suresh P @ 2022 | py_classic_error | Unlicense