File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ tasks = client.tasks(
135
135
## Error handling
136
136
137
137
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:
139
139
140
140
``` python
141
141
try
@@ -144,13 +144,3 @@ except scale.ValidationError as e:
144
144
print (e.code) # 400
145
145
print (e.message) # missing param X
146
146
```
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
-
You can’t perform that action at this time.
0 commit comments