Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vg12345 committed Oct 1, 2024
1 parent eb82203 commit 6091203
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,19 @@ def _remove_files(self, files: list) -> None:
:param files: (List) List of files to be removed
:return: None
"""
self.logger.info(f"removing {len(files)} old files")
self.logger.info(f"Removing {len(files)} old files")
for file in files:
try:
if exists(file):
remove(file)
except FileNotFoundError:
pass
except OSError as exc:
self.logger.error("failed to remove file %s [%s]", file, exc)
self.logger.error("Failed to remove file %s [%s]", file, exc)

def save(self, dataframe:pd.DataFrame, file_name:str) -> None:
"""
save dataframe to the file name
"""
self.logger.info(f"saving data to {file_name}")
self.logger.info(f"Saving data to {file_name}")
dataframe.to_csv(file_name)
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def update_ports_data(self):
for port in meta_data:
port_name = port.get(Constants.PORT_NAME)
if not self.ports_data.get(port_name):
self.ports_data[port_name] = {}
self.ports_data[port_name] = PortData(port_name)
self.update_port_metadata(port_name, port)
ports_updated = True
return ports_updated
Expand Down

0 comments on commit 6091203

Please sign in to comment.