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
Python 3 requires casting the exception to string before printing:
try: ... except ValueError as error: print(str(error))