write_error doesn't allow for encoding of anything other than APIError subclasses
Bug #791136 reported by
Kevin McDermott
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
txAWS |
New
|
Undecided
|
Unassigned |
Bug Description
def write_error(
if failure.
if bytes is None:
else:
So, there's no scope for encoding anything other than APIError subclasses, this means that, for example, psycopg2.errors pass through unencoded, and are returned directly to callers in plain text.
To post a comment you must log in.