From 17fbd01d650f2d681b855ded9ad619ff9fd5c34a Mon Sep 17 00:00:00 2001 From: Lou DeGenaro Date: Tue, 3 Dec 2024 10:58:11 -0500 Subject: [PATCH] signatures & trace Signed-off-by: Lou DeGenaro --- trestle/tasks/cis_xlsx_to_oscal_cd.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/trestle/tasks/cis_xlsx_to_oscal_cd.py b/trestle/tasks/cis_xlsx_to_oscal_cd.py index 5f723fc34..aeec09597 100644 --- a/trestle/tasks/cis_xlsx_to_oscal_cd.py +++ b/trestle/tasks/cis_xlsx_to_oscal_cd.py @@ -174,10 +174,11 @@ def _execute(self) -> TaskOutcome: csv_to_json_helper = CsvToJsonHelper(self.config_object, self._tmpdir) task_outcome = csv_to_json_helper.run() return task_outcome - # success! + # failure + logger.info(traceback.format_exc()) return TaskOutcome('failure') - def _get_tempdir(self): + def _get_tempdir(self) -> tempfile.TemporaryDirectory(): """Get tmpdir.""" return tempfile.TemporaryDirectory() @@ -300,7 +301,7 @@ def __init__(self, config: SectionProxy, tmpdir: str) -> None: self.ws_map = {} self.combined_map = {} - def run(self): + def run(self) -> None: """Run.""" self._add_sheet_combined_profiles() self._save() @@ -694,7 +695,7 @@ def _is_column(self, c1: str, c2: str) -> bool: rval = False return rval - def run(self): + def run(self) -> None: """Run.""" self.csv_helper = CsvHelper(self.opath) self.non_rule_helper = NonRuleHelper(self.config_object, self)