Skip to content
Snippets Groups Projects
Commit 4ee951ae authored by Peter Swain's avatar Peter Swain
Browse files

fix(pipeline): ensure logfile_root_name is str

parent 0c584f0c
No related branches found
No related tags found
No related merge requests found
...@@ -215,6 +215,8 @@ class Pipeline(ProcessABC): ...@@ -215,6 +215,8 @@ class Pipeline(ProcessABC):
# create file handler that logs even debug messages # create file handler that logs even debug messages
if logfile_root_name is None: if logfile_root_name is None:
logfile_root_name = "aliby" logfile_root_name = "aliby"
elif isinstance(logfile_root_name, int):
logfile_root_name = str(logfile_root_name)
fh = logging.FileHandler( fh = logging.FileHandler(
Path(folder) / f"{logfile_root_name}.log", "w+" Path(folder) / f"{logfile_root_name}.log", "w+"
) )
...@@ -412,7 +414,7 @@ class Pipeline(ProcessABC): ...@@ -412,7 +414,7 @@ class Pipeline(ProcessABC):
self.log( self.log(
"WARNING: Bud has been assigned as its own mother." "WARNING: Bud has been assigned as its own mother."
) )
raise Exception("Catastrophic Baby error") raise Exception("Catastrophic Baby error!")
baby_writer.write( baby_writer.write(
data=result, data=result,
overwrite=["mother_assign"], overwrite=["mother_assign"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment