Skip to content
This repository was archived by the owner on Feb 20, 2019. It is now read-only.

Commit 3b5f55c

Browse files
committed
Replace StandardError exception by Exception
StandardError is deprecated in python 3.x. Exception should be used instead.
1 parent 8c33be0 commit 3b5f55c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticutils/contrib/django/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def update_in_index(sender, instance, **kw):
5757
for obj in model.objects.filter(pk__in=id_list):
5858
try:
5959
documents.append(mapping_type.extract_document(obj.id, obj))
60-
except StandardError as exc:
60+
except Exception as exc:
6161
log.exception('Unable to extract document {0}: {1}'.format(
6262
obj, repr(exc)))
6363

0 commit comments

Comments
 (0)