Skip to content

sureshpandiyan1/py_classic_error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

intro

py_classic_error is classic way to show errors for python users.

why you need py_classic_error ?

  • easy to use
  • more readable error & compact
  • show error code

you can install via pip

pip install py_classic_error

example

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])

License

The unlicense

Copyright

Suresh P @ 2022 | py_classic_error | Unlicense