Skip to content

Commit cf5d2ca

Browse files
docs(readme): reference "client" in errors section and add missing import (#43)
1 parent ef710af commit cf5d2ca

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
@@ -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)