Skip to content

Commit

Permalink
Fix bytes vs. str issue resulting in stack trace in log under weewx 5.x.
Browse files Browse the repository at this point in the history
  • Loading branch information
chaunceygardiner committed Feb 7, 2024
1 parent 9aa8e62 commit 8d29f42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/user/forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -3928,9 +3928,9 @@ def generate(location, sts=None, ets=None, dur=2419200, prog=XT_PROG):
err = []
preamble = True
for line in p.stderr:
if line.startswith('Indexing'):
if line.startswith(b'Indexing'):
preamble = False
if not line.startswith('Indexing') and not preamble:
if not line.startswith(b'Indexing') and not preamble:
line = line.rstrip()
err.append(line)
errmsg = ' '.join(err)
Expand Down

0 comments on commit 8d29f42

Please sign in to comment.