File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change
1
+ * Fix #2768, Fix KeyError: 'first-entry' in parse_xinfo_stream.
1
2
* Fix #2749, remove unnecessary __del__ logic to close connections.
2
3
* Fix #2754, adding a missing argument to SentinelManagedConnection
3
4
* Fix `xadd` command to accept non-negative `maxlen` including 0
Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ def parse_xautoclaim(response, **options):
320
320
def parse_xinfo_stream (response , ** options ):
321
321
data = pairs_to_dict (response , decode_keys = True )
322
322
if not options .get ("full" , False ):
323
- first = data [ "first-entry" ]
323
+ first = data . get ( "first-entry" )
324
324
if first is not None :
325
325
data ["first-entry" ] = (first [0 ], pairs_to_dict (first [1 ]))
326
326
last = data ["last-entry" ]
You can’t perform that action at this time.
0 commit comments