File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -138,9 +138,21 @@ def filter_repeaters(repeaters, zone):
138138 continue
139139 if bands :
140140 # repeater frequency must be in the given bands
141- if AmateurBands .get_normalized (r ["Frequency" ]) not in bands :
141+ try :
142+ if AmateurBands .get_normalized (r ["Frequency" ]) not in bands :
143+ continue
144+ except ValueError as ve :
145+ repeater_id = (
146+ r .get ("State ID" , "Unknown state" ),
147+ r .get ("Rptr ID" , "Unknown repeater" ),
148+ )
149+ logger .warning (
150+ "Ignore repeater {!r} with non-amateur frequency: {!r}" .format (
151+ repeater_id ,
152+ r ["Frequency" ],
153+ )
154+ )
142155 continue
143-
144156 # remaining fields in the zone list are criteria to satisfy
145157 if matches_criteria (r , zone ):
146158 matching .append ((distance , r ))
You can’t perform that action at this time.
0 commit comments