Skip to content

Commit de2a9d1

Browse files
committed
update readme
1 parent cfb8d76 commit de2a9d1

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ tasks = client.tasks(
135135
## Error handling
136136

137137
If something went wrong while making API calls, then exceptions will be raised automatically
138-
as a `scale.ScaleError` or `scale.ValidationError` runtime error. For example:
138+
as a `scale.ScaleException` or `scale.ScaleInvalidRequest` runtime error. For example:
139139

140140
```python
141141
try
@@ -144,13 +144,3 @@ except scale.ValidationError as e:
144144
print(e.code) # 400
145145
print(e.message) # missing param X
146146
```
147-
148-
## Custom options
149-
150-
The api initialization accepts the following options:
151-
152-
| Name | Description | Default |
153-
| ---- | ----------- | ------- |
154-
| `endpoint` | Endpoint used in the http requests. | `'https://api.scaleapi.com/v1/'` |
155-
| `api_key` | API key used in the http requests. | required |
156-

0 commit comments

Comments
 (0)