Skip to content

Commit

Permalink
shorten error message
Browse files Browse the repository at this point in the history
  • Loading branch information
alhelguera authored Feb 17, 2025
1 parent b0aaace commit b773ac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wis2box-management/wis2box/metadata/station.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def publish_from_csv(path: Path, new_topic: str = None) -> None:
LOGGER.debug(f'Publishing station list from {path}')
station_list = []
with path.open() as fh:
#checking if file is in standard utf-8
# checking if file is in standard utf-8
error=False
try:
f = codecs.open(str(path), encoding='utf-8', errors='strict')
Expand All @@ -333,7 +333,7 @@ def publish_from_csv(path: Path, new_topic: str = None) -> None:
except UnicodeDecodeError:
error=True
if error:
msg = f'Station file is not in standard UTF-8, please update your file.'
msg = f'Station file is not in standard UTF-8, please update.'
LOGGER.error(msg)
raise RuntimeError(msg)

Expand Down

0 comments on commit b773ac3

Please sign in to comment.