SolrResponse.__repr__ raises an AttributeError
Bug #768470 reported by
Jamu Kakar
This bug report is a duplicate of:
Bug #707518: SolrResponse throws exceptions.AttributeError when printed.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
txsolr |
Invalid
|
Undecided
|
Unassigned |
Bug Description
For example:
result = yield self.client.
print result
To post a comment you must log in.
The issue is that SolrResponse. __repr_ _ tried to access
self.rawResponse which doesn't exist. This could be fixed by changing
self.rawResponse to self.responseDict, though, I think a normal repr
would be better. self.responseDict could contain a large amount of
information will make code like 'print response' produce annoying
output.