From: Jeremy Stanley Date: Sat, 25 Jul 2020 15:26:16 +0000 (+0000) Subject: Correct default_atypes to match what's generated X-Git-Tag: 2.4.1~5 X-Git-Url: https://www.yuggoth.org/gitweb?p=weather.git;a=commitdiff_plain;h=9fa7d3cf1871c059f4e0580ad94caaab64c261b4 Correct default_atypes to match what's generated Kevin Monceaux reported a regression with the 2.4 release. Running with the -a/--alert option and no limited --atypes or atypes override in weatherrc resulted in a message about undefined URLs and no normal output. This problem crept in when hard-coding alert types in the correlator after ditching the woefully unmaintained zonecatalog.curr.tar data source (commit 8a37edd). Update default_atypes so that it covers all relevant non-forecast URLs the correlate routine embeds. --- diff --git a/weather.py b/weather.py index bdda3ee..803525f 100644 --- a/weather.py +++ b/weather.py @@ -400,14 +400,9 @@ def get_options(config): + "flash_flood_watch," \ + "flood_statement," \ + "flood_warning," \ - + "marine_weather_statement," \ - + "river_statement," \ + "severe_thunderstorm_warning," \ + "severe_weather_statement," \ - + "short_term_forecast," \ - + "special_marine_warning," \ + "special_weather_statement," \ - + "tornado_warning," \ + "urgent_weather_message" option_parser.add_option("--atypes", dest="atypes",