Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Commit

Permalink
Exception inherit from Exception
Browse files Browse the repository at this point in the history
Exception should inherit from builtin Exception not BaseException
  • Loading branch information
ovv committed Dec 17, 2017
1 parent 66f128b commit ae912e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slack/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import http


class HTTPException(BaseException):
class HTTPException(Exception):
"""
Raised on non 200 status code
Expand All @@ -20,7 +20,7 @@ def __str__(self):
return '{}, {}'.format(self.status.value, self.status.phrase)


class SlackAPIError(BaseException):
class SlackAPIError(Exception):
"""
Raised for errors return by the Slack API
Expand Down Expand Up @@ -54,7 +54,7 @@ def __str__(self):
return HTTPException.__str__(self) + ', retry in {}s'.format(self.retry_after)


class FailedVerification(BaseException):
class FailedVerification(Exception):
"""
Raised when incoming data from Slack webhooks fail verification
Expand Down

0 comments on commit ae912e7

Please sign in to comment.