diff --git a/sed/loader/flash/loader.py b/sed/loader/flash/loader.py index 91fe79e1..43686304 100644 --- a/sed/loader/flash/loader.py +++ b/sed/loader/flash/loader.py @@ -779,7 +779,7 @@ def parquet_handler(self, data_parquet_dir, **kwds): else: # Obtain the filenames from the method which handles buffer file creation/reading - h5_filenames, parquet_filenames = self.buffer_file_handler( + _, parquet_filenames = self.buffer_file_handler( data_parquet_dir, detector, ) diff --git a/sed/loader/flash/metadata.py b/sed/loader/flash/metadata.py index 89c2c620..de256e4d 100644 --- a/sed/loader/flash/metadata.py +++ b/sed/loader/flash/metadata.py @@ -87,9 +87,9 @@ def _get_metadata_per_run(self, pid: str) -> Dict: # If the dataset request is successful, return the retrieved metadata # as a JSON object return dataset_response.json() - except requests.exceptions.RequestException as e: + except requests.exceptions.RequestException as exception: # If the request fails, raise warning - warnings.warn(f"Failed to retrieve metadata for PID {pid}: {str(e)}") + warnings.warn(f"Failed to retrieve metadata for PID {pid}: {str(exception)}") return {} # Return an empty dictionary for this run def _create_dataset_url_by_PID(self, pid: str) -> str: # pylint: disable=invalid-name