From 368396dffb4e3db05ae8bbd7c86b6e53ca8ec680 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Thu, 20 Jul 2023 00:30:01 +0000 Subject: [PATCH] docs(readme): reference "client" in errors section and add missing import --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 61503b82..694aaf87 100644 --- a/README.md +++ b/README.md @@ -151,12 +151,13 @@ response), a subclass of `finch.APIStatusError` will be raised, containing `stat All errors inherit from `finch.APIError`. ```python +import finch from finch import Finch -finch = Finch() +client = Finch() try: - finch.hris.directory.list_individuals() + client.hris.directory.list_individuals() except finch.APIConnectionError as e: print("The server could not be reached") print(e.__cause__) # an underlying Exception, likely raised within httpx.