Scripting: 'IndentationError' has no attribute 'msg' #65863

Closed
opened 2019-06-16 21:53:30 +02:00 by Adrian Röfer · 4 comments

System Information
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

Blender Version
Broken: version: 2.80 (sub 71), branch: master, commit date: 2019-05-22 08:33, hash: blender/blender@85322737ba
Worked: (optional)

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

.blend file: indentation_error_bug.blend

**System Information** 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 **Blender Version** Broken: version: 2.80 (sub 71), branch: master, commit date: 2019-05-22 08:33, hash: `blender/blender@85322737ba` Worked: (optional) **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 ``` .blend file: [indentation_error_bug.blend](https://archive.blender.org/developer/F7106050/indentation_error_bug.blend)
Author

Added subscriber: @aroefer

Added subscriber: @aroefer
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Philipp Oeser self-assigned this 2019-06-17 13:51:45 +02:00
Member

Confirmed (but on low prio - since you can still see this is related to IndentationError), can check later...

Confirmed (but on low prio - since you can still see this is related to IndentationError), can check later...
Philipp Oeser was unassigned by Dalai Felinto 2019-12-23 16:34:06 +01:00

Closed as duplicate of #67295

Closed as duplicate of #67295
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#65863
No description provided.