diff options
| author | 2021-10-10 13:41:24 -0400 | |
|---|---|---|
| committer | 2021-10-10 13:48:18 -0400 | |
| commit | 016f65b4d450ff538a2b5deb21f8f03d678dac84 (patch) | |
| tree | 78bdde3e151a8b7b9bb724963cbbc2d028e13ad4 /tests/test_base.py | |
| parent | Merge pull request #1630 from python-discord/kill-subdomains (diff) | |
Handle 400 when setting pre-existing doc package
If you run, for example:
!doc setdoc black https://black.readthedocs/en/stable/objects.inv
twice over. You'll get an unhelpful "According to the API, your request
is malformed." error message back. This commit adds an error handler
to catch the HTTP 400 and tell the user the package already exists.
Diffstat (limited to 'tests/test_base.py')
0 files changed, 0 insertions, 0 deletions