Commit 647391c4 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

bort: When iterating a JSON stream, make sure we stop properly

parent e5457769
Pipeline #7151 passed with stage
in 47 seconds
......@@ -372,7 +372,7 @@ class BorgBackup: # noqa: R0902 pylint: disable=too-many-instance-attributes
json_stream = json_loads_stream(line)
while True:
# Grab next JSON object
json_obj = next(json_stream)
json_obj = next(json_stream, None)
if json_obj is None:
# Make sure we have a type attribute
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment