How do I print an exception in Python?

How do I print the error/exception in the except: block?

try:
    ...
except:
    print(exception)

← Назад к списку