Operating system: Linux-4.18.0-21-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 418.56
Broken: version: 2.80 (sub 71), branch: master, commit date: 2019-05-22 08:33, hash: rB85322737baec
Short description of error
While doing some scripting, I noticed that there seems to be a problem with displaying indentation errors. It seems that the Exception raised by the interpreter gets caught and its 'msg' attribute accessed. The problem is that IndentationError does not have that attribute and now that fact is being output on the terminal instead of the actual indentation error.
Exact steps for others to reproduce the error
Just run the faulty script open in the attached blend file. Your terminal should then read:
AttributeError: 'IndentationError' object has no attribute 'msg' Error: Python script failed, check the message in the system console