Skip to content

Commit 3d5a742

Browse files
stainless-botrattrayalex
authored andcommitted
docs(readme): reference "client" in errors section and add missing import (#43)
1 parent 43a8cb3 commit 3d5a742

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,13 @@ response), a subclass of `finch.APIStatusError` will be raised, containing `stat
151151
All errors inherit from `finch.APIError`.
152152

153153
```python
154+
import finch
154155
from finch import Finch
155156

156-
finch = Finch()
157+
client = Finch()
157158

158159
try:
159-
finch.hris.directory.list_individuals()
160+
client.hris.directory.list_individuals()
160161
except finch.APIConnectionError as e:
161162
print("The server could not be reached")
162163
print(e.__cause__) # an underlying Exception, likely raised within httpx.

0 commit comments

Comments
 (0)