Source Code:
(back to article)
try: # some code that may raise an exception 1 / 0 except Exception as e: # e contains the exception message print(e)
Result:
Report an issue