Skip to content

Commit

Permalink
Missing delimiter error is now stored
Browse files Browse the repository at this point in the history
  • Loading branch information
RoryPTB committed Oct 12, 2023
1 parent 562b50c commit 342fb66
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions synop2bufr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1227,11 +1227,10 @@ def extract_individual_synop(data: str) -> list:
s0 = d
else:
if not d.__contains__("="):
LOGGER.error((
raise ValueError((
"Delimiters (=) are not present in the string,"
" thus unable to identify separate SYNOP reports."
)) # noqa
raise ValueError
))

d = re.sub(r"\n+", " ", d)
d = re.sub(r"\x03", "", d)
Expand Down

0 comments on commit 342fb66

Please sign in to comment.