Skip to content

Commit

Permalink
cove_bods/process.py: Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed (ODSC) committed Aug 2, 2023
1 parent 9d904ae commit 583286e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cove_bods/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,10 @@ def is_processing_applicable(self) -> bool:
return True

def is_processing_needed(self) -> bool:
if os.path.exists(self.xlsx_filename): return False
if error_file_exists("ConvertJSONIntoSpreadsheets", self.data_id): return False
if os.path.exists(self.xlsx_filename):
return False
if error_file_exists("ConvertJSONIntoSpreadsheets", self.data_id):
return False
return True

def process(self, process_data: dict) -> dict:
Expand All @@ -307,7 +309,8 @@ def process(self, process_data: dict) -> dict:
except Exception as err:
capture_exception(err)
create_error_file("ConvertJSONIntoSpreadsheets", self.data_id,
{"type": type(err).__name__, "filename": process_data["json_data_filename"].split('/')[-1]})
{"type": type(err).__name__,
"filename": process_data["json_data_filename"].split('/')[-1]})

return process_data

Expand Down

0 comments on commit 583286e

Please sign in to comment.