diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-09-16 16:23:14 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | 748991ae4d0bf3726b4a1eeb851b2d3a6446b2bb (patch) | |
tree | 5ac2479ecc4abc2ef96c5d38eafc26f1d90ccf2d /slack/error.py | |
parent | 30eea6bb1f4278b79583e8130aef5e404411a31b (diff) | |
download | wee-slack-748991ae4d0bf3726b4a1eeb851b2d3a6446b2bb.tar.gz |
Use None instead of 0 for missing http code in HttpError
Diffstat (limited to 'slack/error.py')
-rw-r--r-- | slack/error.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slack/error.py b/slack/error.py index 7a38f29..80af53d 100644 --- a/slack/error.py +++ b/slack/error.py @@ -21,7 +21,7 @@ class HttpError(Exception): url: str, options: Dict[str, str], return_code: int, - http_status_code: int, + http_status_code: Optional[int], error: str, ): super().__init__( |