79560059

Date: 2025-04-07 13:56:41
Score: 1.5
Natty:
Report link

You can access the Error Type in python3 using type().__name__

e.g.

try:
    ...
except Exception as err:
    print(f'Error: {str(err)}, Type: {type(err).__name__}')
    ...
...
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yassine Asghar