Skip to content

Commit

Permalink
signatures & trace
Browse files Browse the repository at this point in the history
Signed-off-by: Lou DeGenaro <[email protected]>
  • Loading branch information
degenaro committed Dec 3, 2024
1 parent 4a869a5 commit 17fbd01
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions trestle/tasks/cis_xlsx_to_oscal_cd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 17fbd01

Please sign in to comment.