View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001431 | FreeCAD | Bug | public | 2014-02-22 11:05 | 2014-02-22 14:20 |
Reporter | wmayer | Assigned To | yorik | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Target Version | 0.14 | ||||
Summary | 0001431: Unproper implementation of IsActive() in Python commands | ||||
Description | Many Python commands in Draft and Arch implement the IsActive() method in an unproper way. The consequence is that PyCXX internally throws and handles C++ exceptions all the time. Now when trying to debug FreeCAD you often get catchpoints which makes it harder to do your actual work. See 0001420 Example code: def IsActive(self): self.selection = Draft.getSelection() if (Draft.getType(self.selection[0]) in ['Wire','BSpline']): return True else: return False The command doesn't check if selection is an empty list and thus causes an index error. | ||||
Tags | No tags attached. | ||||
FreeCAD Information | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2014-02-22 11:05 | wmayer | New Issue | |
2014-02-22 11:05 | wmayer | Status | new => assigned |
2014-02-22 11:05 | wmayer | Assigned To | => yorik |
2014-02-22 11:05 | wmayer | Relationship added | related to 0001420 |
2014-02-22 14:20 | yorik | Changeset attached | => FreeCAD Master master 114ccd21 |
2014-02-22 14:20 | yorik | Status | assigned => closed |
2014-02-22 14:20 | yorik | Resolution | open => fixed |