Skip to content

Commit 9cc38b3

Browse files
committed
fix thinko
1 parent 55cce02 commit 9cc38b3

File tree

1 file changed

+1
-1
lines changed
  • python_packages/jupyter_lsp/jupyter_lsp

1 file changed

+1
-1
lines changed

python_packages/jupyter_lsp/jupyter_lsp/stdio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def _read_content(self, length: int, max_parts=100, max_empty_parts_in_a_row=50)
119119
while received_size < length and len(raw_parts) < max_parts and max_empty_parts_in_a_row > 0:
120120
part = self.stream.read(length)
121121
if part is None:
122-
--max_empty_parts_in_a_row
122+
max_empty_parts_in_a_row -= 1
123123
continue # pragma: no cover
124124
received_size += len(part)
125125
raw_parts.append(part)

0 commit comments

Comments
 (0)