Skip to content

Commit c9ecb6c

Browse files
Fixed bug that failed to handle the KeyboardInterrupt exception
correctly when the application caught this exception and then tried to reuse the connection.
1 parent 306e41b commit c9ecb6c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

doc/src/release_notes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ Thin Mode Changes
2727
#) Fixed bug when using bind variables with scrollable cursors.
2828
#) Fixed bug when setting ``SOURCE_ROUTE`` on the ``DESCRIPTION`` section of a
2929
full connect descriptor instead of the ``ADDRESS_LIST`` section.
30+
#) Fixed bug that failed to handle the KeyboardInterrupt exception correctly
31+
when the application caught this exception and then tried to reuse the
32+
connection.
3033

3134
Thick Mode Changes
3235
++++++++++++++++++

src/oracledb/impl/thin/protocol.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ cdef class Protocol(BaseProtocol):
460460
except MarkerDetected:
461461
self._reset()
462462
message.process(self._read_buf)
463-
except Exception as e:
463+
except BaseException as e:
464464
if not self._in_connect \
465465
and self._write_buf._packet_sent \
466466
and self._read_buf._transport is not None \

0 commit comments

Comments
 (0)