File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 13
13
=====
14
14
.. code-block :: python
15
15
16
- import scale
17
- client = scale .ScaleClient(' YOUR_API_KEY_HERE' )
16
+ import scaleapi
17
+ client = scaleapi .ScaleClient(' YOUR_API_KEY_HERE' )
18
18
19
19
Tasks
20
20
=====
@@ -167,13 +167,13 @@ Error handling
167
167
==============
168
168
169
169
If something went wrong while making API calls, then exceptions will be raised automatically
170
- as a ``scale .ScaleException `` or ``scale .ScaleInvalidRequest `` runtime error. For example:
170
+ as a ``scaleapi .ScaleException `` or ``scaleapi .ScaleInvalidRequest `` runtime error. For example:
171
171
172
172
.. code-block :: python
173
173
174
174
try
175
- scale .create_categorization_task(' Some parameters are missing.' )
176
- except scale .ValidationError as e:
175
+ scaleapi .create_categorization_task(' Some parameters are missing.' )
176
+ except scaleapi .ValidationError as e:
177
177
print (e.code) # 400
178
178
print (e.message) # missing param X
179
179
You can’t perform that action at this time.
0 commit comments