Skip to content

Commit 3cdb257

Browse files
jtratnerdcwatson
authored andcommitted
Changed exception log message in whoosh backend to use __class__.__name__ instead of just __name__ (closes django-haystack#641)
1 parent 1fb82c3 commit 3cdb257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haystack/backends/whoosh_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def update(self, index, iterable, commit=True):
186186
# We'll log the object identifier but won't include the actual object
187187
# to avoid the possibility of that generating encoding errors while
188188
# processing the log message:
189-
self.log.error(u"%s while preparing object for update" % e.__name__, exc_info=True, extra={
189+
self.log.error(u"%s while preparing object for update" % e.__class__.__name__, exc_info=True, extra={
190190
"data": {
191191
"index": index,
192192
"object": get_identifier(obj)

0 commit comments

Comments
 (0)