File tree 2 files changed +3
-2
lines changed 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ def _handle_warnings(self) -> None:
218
218
if self ._cnx .raise_on_warnings :
219
219
raise err
220
220
221
- warnings .warn (err , stacklevel = 4 )
221
+ warnings .warn (str ( err ) , stacklevel = 4 )
222
222
223
223
def _handle_result (self , result : Union [CextEofPacketType , CextResultType ]) -> None :
224
224
"""Handles the result after statement execution"""
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ def __str__(self) -> str:
75
75
return self ._full_msg
76
76
77
77
78
- class Warning (Warning , Exception ): # pylint: disable=redefined-builtin
78
+ class Warning (Exception ): # pylint: disable=redefined-builtin
79
79
"""Exception for important warnings"""
80
80
81
81
@@ -138,6 +138,7 @@ class PoolError(Error):
138
138
DataError ,
139
139
NotSupportedError ,
140
140
PoolError ,
141
+ Warning ,
141
142
]
142
143
# _CUSTOM_ERROR_EXCEPTIONS holds custom exceptions and is used by the
143
144
# function custom_error_exception. _ERROR_EXCEPTIONS (at bottom of module)
You can’t perform that action at this time.
0 commit comments