Commit 34914c5a authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] potential crash for logging

parent 4ae47012
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -724,7 +724,6 @@ def add_masa_metadata_preamble_repeat(
            masaAnalyzer(sba, num_tc, masa.dirs, tmp_meta)

            if logger:
            logger.debug(f"Input Metadata size {metadata_in.stat().st_size}")
                logger.debug(f"Preamble Metadata size {tmp_meta.stat().st_size}")

        # concatenate preamble and metadata
@@ -734,7 +733,8 @@ def add_masa_metadata_preamble_repeat(
                copyfileobj(in_meta, out_meta)

        if logger:
            logger.debug(f"Input Metadata + Preamble size {tmp_meta.stat().st_size}")
            logger.debug(f"Input Metadata size {metadata_in.stat().st_size}")
            logger.debug(f"Input + Preamble concatenated metadata size {tmp_meta.stat().st_size}")

        if repeat:
            # repeat the entire file