Catch all unexpected errors in with Pyax queries and report as a PyaxUnexpectedError with details.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyax |
New
|
Undecided
|
Unassigned |
Bug Description
Use case: at one point, Salesforce returned a non-valid-xml response to a query, which it should never do. Although we couldn't fix it, a good error here indicating what SF returned would have helped in diagnosing and reporting the error to SF.
The traceback showed where there error occurred, but why was the sobject_result a string and what string was it?
Traceback (most recent call last):
File "/srv/salesforc
LicenceKey.
File "/srv/salesforc
lic_
File "/srv/salesforc
return self.__
File "/srv/salesforc
query_
File "/srv/salesforc
if isinstance(
AttributeError: 'unicode' object has no attribute 'get'