how to detect the error type in the error and exception in python code example Example: exception pyton print except Exception as e: print(e)