Skip to content

Commit 34b2e37

Browse files
joaojuniorElSaico
authored andcommitted
Fix typo
1 parent e857a2d commit 34b2e37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test_haystack/elasticsearch2_tests/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ def setup():
1717
raise ImportError
1818
from elasticsearch import Elasticsearch, exceptions
1919
except ImportError:
20-
self.log.error("'elasticsearch>=2.0.0,<3.0.0' not installed.", exc_info=True)
20+
log.error("'elasticsearch>=2.0.0,<3.0.0' not installed.", exc_info=True)
2121
raise unittest.SkipTest("'elasticsearch>=2.0.0,<3.0.0' not installed.")
2222

2323
url = settings.HAYSTACK_CONNECTIONS['elasticsearch']['URL']
2424
es = Elasticsearch(url)
2525
try:
2626
es.info()
2727
except exceptions.ConnectionError as e:
28-
self.log.error("elasticsearch not running on %r" % url, exc_info=True)
28+
log.error("elasticsearch not running on %r" % url, exc_info=True)
2929
raise unittest.SkipTest("elasticsearch not running on %r" % url, e)

0 commit comments

Comments
 (0)