Skip to content

Commit c8e8d7c

Browse files
committed
add error code documentation
1 parent 5618eb4 commit c8e8d7c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/test_tasks/test_task.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ def test_upload_task(self):
6262
# success
6363
break
6464
except OpenMLServerException as e:
65+
# Error code for 'task already exists'
66+
# Should be 533 according to the docs
67+
# (# https://www.openml.org/api_docs#!/task/post_task)
6568
if e.code == 614:
6669
continue
6770
else:

0 commit comments

Comments
 (0)