File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2020#
2121
2222from robot .api .deco import library , keyword
23- from robot .api .logger import librarylogger as logger
23+ # from robot.api.logger import librarylogger as robotlogger
2424import aprslib
2525import re
2626import logging
@@ -161,7 +161,7 @@ def aprsis_filter(self, aprsis_filter: str):
161161 # Apply a crude format filter and check if we have received something valid
162162 if aprsis_filter != "" :
163163 matches = re .findall (
164- r"^[r|p|b|o|t|s|d|a|e|g|q|m|f ]\/" , aprsis_filter , re .IGNORECASE
164+ r"^[rpbotsdaegqmf ]\/" , aprsis_filter , re .IGNORECASE
165165 )
166166 if not matches :
167167 raise ValueError ("Invalid APRS-IS server filter string" )
@@ -334,7 +334,7 @@ def connect_aprsis(self):
334334 # Are we connected? If not, then properly destroy what we
335335 # may have gathered as data and raise an error
336336 if not self .ais ._connected :
337- disconnect_aprsis (self )
337+ self . disconnect_aprsis (self )
338338 raise ConnectionError (
339339 f"Cannot connect to APRS-IS with server { self .aprsis_server } port { self .aprsis_port } callsign { self .aprsis_callsign } "
340340 )
You can’t perform that action at this time.
0 commit comments