diff --git a/tests/tests_integration/test_cdf_upload_integration.py b/tests/tests_integration/test_cdf_upload_integration.py index 725b28f9..2246555a 100644 --- a/tests/tests_integration/test_cdf_upload_integration.py +++ b/tests/tests_integration/test_cdf_upload_integration.py @@ -96,12 +96,13 @@ def setUp(self): self.client.assets.delete(external_id=[self.asset1, self.asset2, self.asset3], ignore_unknown_ids=True) except CogniteNotFoundError: pass - try: - # No ignore_unknown_ids in files, so we need to delete them one at a time - for file in [self.file1, self.file2]: + + # No ignore_unknown_ids in files, so we need to delete them one at a time + for file in [self.file1, self.file2]: + try: self.client.files.delete(external_id=file) - except CogniteNotFoundError: - pass + except CogniteNotFoundError: + pass def tearDown(self): try: