Quote:
How do I isolate a problem in a Python script when the terminal output is the print statement from the except block?
By reading Python documentation for 'try' :
8. Errors and Exceptions — Python 3.9.7 documentation[
^]
If you dare to read it until 'except', you will see how to get detail on the exception.
... except Exception as inst:
... print(type(inst))
... print(inst.args)
... print(inst)
...
Also removing the 'try' will have your program crash with full error message from Python.