File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Bugfixes
11
11
^^^^^^^^
12
12
13
13
- Fixed compatibility of `Collection.aggregate() ` with PyMongo 3.6
14
+ - AutoReconnect exceptions may give invalid stack traces when not handled
14
15
15
16
Features
16
17
^^^^^^^^
Original file line number Diff line number Diff line change @@ -323,16 +323,14 @@ def connectionLost(self, reason=connectionDone):
323
323
# too late.
324
324
self .factory .setInstance (None , reason )
325
325
326
- auto_reconnect = AutoReconnect ("TxMongo lost connection to MongoDB." )
327
-
328
326
if self .__deferreds :
329
327
deferreds , self .__deferreds = self .__deferreds , {}
330
328
for df in deferreds .values ():
331
- df .errback (auto_reconnect )
329
+ df .errback (AutoReconnect ( "TxMongo lost connection to MongoDB." ) )
332
330
deferreds , self .__connection_ready = self .__connection_ready , []
333
331
if deferreds :
334
332
for df in deferreds :
335
- df .errback (auto_reconnect )
333
+ df .errback (AutoReconnect ( "TxMongo lost connection to MongoDB." ) )
336
334
337
335
protocol .Protocol .connectionLost (self , reason )
338
336
You can’t perform that action at this time.
0 commit comments