Good time of day! Please tell me how to display the error text and stacktrace in the console as it is done with an unhandled exception:
Traceback (most recent call last): File "file", line 67, in <module> M.logoutv() File "file", line 260, in __getattr__ raise AttributeError("Unknown IMAP4 command: '%s'" % attr) AttributeError: Unknown IMAP4 command: 'logoutv'
I want to catch in try:
process in except Exception as err: