Report helpful error message for missing "jwt" dependency
- 主要言語
- Python
- スター
- 459
- フォーク
- 223
- 平均マージ
- 8時間 57分
- マージ済み PR(30日)
- 13
説明
### Is your feature request related to a problem? Please describe.
As is known from closed issue (https://github.com/box/box-python-sdk/issues/387) if you don't `pip install "boxsdk[jwt]"`, and use the JWT authorization, you get a somewhat confusing message:
```
File "/Users/first.last/workspace/repo_name/box/../lib/box.py", line 70, in get_jwt_client
auth = boxsdk.JWTAuth.from_settings_file(load_config(self.app_name))
AttributeError: 'NoneType' object has no attribute 'from_settings_file'
```
### Describe the solution you'd like
Return an error message instead that at least suggests "Did you try pip install boxsdk[jwt]?" when JWTAuth isn't going to work.
### Additional context
Using sdk version `boxsdk 2.9.0`
コントリビューションガイド
評価
この issue はまだ評価されていません。