Skip to content

Commit

Permalink
fix more linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zain-sohail committed Sep 28, 2023
1 parent 4c39ec1 commit 96fb204
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sed/loader/flash/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down
4 changes: 2 additions & 2 deletions sed/loader/flash/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96fb204

Please sign in to comment.