Skip to content

Commit 04551ae

Browse files
Helen Koikenuclearcat
authored andcommitted
src/send_kcidb: fix return of _submit_to_kcidb()
If nothing was submited, return True to indicate we had no errors on the submission. Signed-off-by: Helen Koike <helen.koike@collabora.com>
1 parent 0c98e09 commit 04551ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/send_kcidb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,12 +716,12 @@ def _submit_to_kcidb(self, batch, context):
716716
batch['issues'], batch['incidents'], context['client']
717717
)
718718
self._nodes_processed(batch['nodes'])
719-
return True
720719
except Exception as exc:
721720
self.log.error(f"Failed to submit data to KCIDB: {str(exc)}")
722721
# Don't mark as processed since they were not sent to KCIDB
723722
batch['nodes'] = []
724723
return False
724+
return True
725725

726726
def _reset_batch_data(self):
727727
"""Reset batch data structures"""

0 commit comments

Comments
 (0)