How can I actually print out the ValueError\'s message after I catch it?
If I type except ValueError, err: into my code instead of except ValueError a
except ValueError, err:
except ValueError a
try: ... except ValueError as e: print(e)
Python 3 requires casting the exception to string before printing:
try: ... except ValueError as error: print(str(error))