Skip to content

Commit 31a3abc

Browse files
docs: fix error handling import statements in README
Corrected the import statements for exception classes to properly import from geocodio.exceptions module instead of the main geocodio module. This ensures the code examples work correctly.
1 parent 1c6c6c2 commit 31a3abc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [main, chore/ci-setup]
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
68
workflow_dispatch:
79

810
jobs:

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ Error Handling
115115
--------------
116116
117117
```python
118-
from geocodio import GeocodioClient, AuthenticationError, InvalidRequestError
118+
from geocodio import GeocodioClient
119+
from geocodio.exceptions import AuthenticationError, InvalidRequestError
119120
120121
try:
121122
client = GeocodioClient("INVALID_API_KEY")

0 commit comments

Comments
 (0)