Skip to content

Commit fcbc90a

Browse files
Fixed minor bugs
1 parent ce58ec9 commit fcbc90a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AprsLibrary.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#
2121

2222
from robot.api.deco import library, keyword
23-
from robot.api.logger import librarylogger as logger
23+
#from robot.api.logger import librarylogger as robotlogger
2424
import aprslib
2525
import re
2626
import 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
)

0 commit comments

Comments
 (0)