Skip to content

Commit c8f85f2

Browse files
authored
Fix missing import + typo in README.md (#141)
1 parent 77ec182 commit c8f85f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ have an `IndexDefinition` instance, you can create the instance by passing a
120120
schema iterable to the `create_index()` method.
121121

122122
```py
123-
from redisearch import Client, IndexDefinition
123+
from redis import ResponseError
124+
from redisearch import Client, IndexDefinition, TextField
124125

125126
SCHEMA = (
126127
TextField("title", weight=5.0),
@@ -133,7 +134,7 @@ definition = IndexDefinition(prefix=['blog:'])
133134

134135
try:
135136
client.info()
136-
except ResponseError
137+
except ResponseError:
137138
# Index does not exist. We need to create it!
138139
client.create_index(SCHEMA, definition=definition)
139140
```

0 commit comments

Comments
 (0)