Skip to content

Commit f6629f1

Browse files
committed
Replace BaseException with Exception
From Python docs[0]: The base class for all built-in exceptions. It is not meant to be directly inherited by user-defined classes (for that, use Exception). BaseException can be a problem by code that catches Exception. I had problems with celery. That should be backwards compatible, since Exception inherits from BaseException [0] https://docs.python.org/2/library/exceptions.html
1 parent 613e536 commit f6629f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opentok/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class OpenTokException(BaseException):
1+
class OpenTokException(Exception):
22
"""Defines exceptions thrown by the OpenTok SDK.
33
"""
44
pass

0 commit comments

Comments
 (0)