o355 / PyWeather

Viewing the weather in a CLI has never been this much fun. (ARCHIVED)
https://gitlab.com/o355/PyWeather
GNU General Public License v3.0
28 stars 8 forks source link

Bug when logger is on and entering tide data #71

Closed o355 closed 6 years ago

o355 commented 6 years ago
Traceback (most recent call last):
  File "pyweather.py", line 6293, in <module>
    logger.debug("tide_json: %s" % astronomy_json)
NameError: name 'astronomy_json' is not defined

The code on my desktop isn't up to date, so the line number is approximate. Further investigation is needed to see if this bug affects other versions of PyWeather

o355 commented 6 years ago

If you haven't guessed already, it's due to an incorrect variable being referenced. The issue has been fixed, testing has begun.

I'm also thinking this only happens when verbosity and json verbosity are both enabled.

o355 commented 6 years ago

Issue fixed.