Maniphest T65863

Scripting: 'IndentationError' has no attribute 'msg'
Closed, Duplicate

Assigned To
None
Authored By
Adrian Röfer (aroefer)
Jun 16 2019, 9:53 PM
Tags
  • BF Blender
  • Add-ons (BF-Blender)
  • Tracker Curfew
Subscribers
Adrian Röfer (aroefer)
Philipp Oeser (lichtwerk)

Description

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: rB85322737baec
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:

Event Timeline

Adrian Röfer (aroefer) created this task.Jun 16 2019, 9:53 PM
Philipp Oeser (lichtwerk) claimed this task.Jun 17 2019, 1:51 PM
Philipp Oeser (lichtwerk) lowered the priority of this task from 90 to Low.
Philipp Oeser (lichtwerk) added a subscriber: Philipp Oeser (lichtwerk).

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

Philipp Oeser (lichtwerk) added a project: Add-ons (BF-Blender).Jun 17 2019, 1:58 PM
Dalai Felinto (dfelinto) removed Philipp Oeser (lichtwerk) as the assignee of this task.Dec 23 2019, 4:34 PM
Dalai Felinto (dfelinto) added a project: Tracker Curfew.