StateNotFoundError doesn't use args (aka doesn't behave like I expect it too)
Bug #1246926 reported by
Christopher Lee
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot |
New
|
Undecided
|
Unassigned |
Bug Description
StateNotFoundError doesn't use args so I can't add extra details to the exception message and re-raise the original exception.
A pattern I normally follow is something like:
except ValueError as e:
e.args += (
"Some useful debugging info/message",
)
raise
To post a comment you must log in.