diff --git a/CHANGELOG.md b/CHANGELOG.md index f8f048aa..969f1844 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Exception `DataCloneError: The object could not be cloned` () - Fixed extension comparison in task frames CLI () - Incorrect work when copy job list with "Copy" button () +- Iterating over manifest () - Manifest removing () ### Security diff --git a/utils/dataset_manifest/core.py b/utils/dataset_manifest/core.py index 59090e2d..7d2ca852 100644 --- a/utils/dataset_manifest/core.py +++ b/utils/dataset_manifest/core.py @@ -396,12 +396,11 @@ class _ManifestManager(ABC): image_number = 0 line = manifest_file.readline() while line: - if not line.strip(): - continue - parsed_properties = json.loads(line) - self._json_item_is_valid(**parsed_properties) - yield (image_number, parsed_properties) - image_number += 1 + if line.strip(): + parsed_properties = json.loads(line) + self._json_item_is_valid(**parsed_properties) + yield (image_number, parsed_properties) + image_number += 1 line = manifest_file.readline() @property