Skip to content

Commit

Permalink
Modify build2 (#623)
Browse files Browse the repository at this point in the history
* build関数でValueErrorのメッセージを入れる

* テストコードを追加

* CredentialsNotFoundError エラーの作成

* update docstring
  • Loading branch information
yuji38kwmt authored Jan 16, 2024
1 parent b83b54d commit dc93408
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions annofabapi/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def build(
Returns:
AnnofabApi, Wrapperのインスタンスを保持するインスタンス
Raises:
CredentialsNotFoundError: `.netrc`ファイルまたは環境変数にAnnofabの認証情報がなかった
"""
if login_user_id is not None and login_password is not None:
return Resource(login_user_id, login_password, endpoint_url=endpoint_url)
Expand Down

0 comments on commit dc93408

Please sign in to comment.