Opened 6 years ago
Closed 5 years ago
#3194 closed defect (fixed)
remove bare excepts
| Reported by: | Greg Couch | Owned by: | Greg Couch |
|---|---|---|---|
| Priority: | major | Milestone: | 1.0 |
| Component: | Infrastructure | Version: | |
| Keywords: | Cc: | chimera-programmers | |
| Blocked By: | Blocking: | ||
| Notify when closed: | Platform: | all | |
| Project: | ChimeraX |
Description
All bare excepts, "except:" should be removed from ChimeraX. Instead, they should be "except Exception:" or "except BaseException:" depending on intent. BaseException catches KeyboardInterrupt and SystemExit in addition to other exceptions, just like a bare except, so another option would be to have explicit except causes for those specific exceptions.
Change History (2)
comment:2 by , 5 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
All of the bare excepts have been replace with "except Exception".
Note:
See TracTickets
for help on using tickets.