Skip to content

Commit 81b5fd4

Browse files
committed
rename StandardError to Exception
StandardError was removed in Python 3, see [1]. The recommended fixer will replace all uses of StandardError with Exception. 1. https://docs.python.org/3/whatsnew/3.0.html
1 parent 46c565b commit 81b5fd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tarantool/error.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828
try:
29-
class Warning(StandardError):
29+
class Warning(Exception):
3030
'''Exception raised for important warnings
3131
like data truncations while inserting, etc. '''
3232
except NameError:
@@ -35,7 +35,7 @@ class Warning(Exception):
3535
like data truncations while inserting, etc. '''
3636

3737
try:
38-
class Error(StandardError):
38+
class Error(Exception):
3939
'''Base class for error exceptions'''
4040
except NameError:
4141
class Error(Exception):

0 commit comments

Comments
 (0)