Skip to content

Commit

Permalink
Removing possible trailing whitespace from dataset path (#256)
Browse files Browse the repository at this point in the history
Co-authored-by: rlj <[email protected]>
  • Loading branch information
Jorgen-5 and rlj authored Mar 27, 2024
1 parent d3e325f commit 0021565
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/datadoc/frontend/callbacks/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ def open_dataset_handling(
file_path: str,
) -> tuple[bool, bool, str, str]:
"""Handle errors and other logic around opening a dataset file."""
if file_path:
file_path = file_path.strip()

try:
state.metadata = open_file(file_path)
except FileNotFoundError:
Expand Down

0 comments on commit 0021565

Please sign in to comment.