@@ -334,7 +334,7 @@ def connect_aprsis(self):
334
334
# Finally, connect to APRS-IS
335
335
self .ais .connect (blocking = True )
336
336
337
- # Are we connected? If not, then properly destroy what we
337
+ # Are we connected? If not, then properly destroy what we
338
338
# may have gathered as data and raise an error
339
339
if not self .ais ._connected :
340
340
disconnect_aprsis (self )
@@ -376,17 +376,15 @@ def send_aprs_packet(self, packet: str):
376
376
# Are we connected?
377
377
if not self .ais :
378
378
raise ConnectionError ("Not connected to APRS-IS; cannot send packet" )
379
-
379
+
380
380
# We seem to be connected
381
381
logger .debug (msg = f"Sending message '{ packet } ' to APRS-IS" )
382
382
383
383
# Try to send data to the socket
384
384
try :
385
385
self .ais .sendall (packet )
386
386
except :
387
- raise ConnectionError (
388
- f"Error while sending message '{ packet } ' to APRS-IS"
389
- )
387
+ raise ConnectionError (f"Error while sending message '{ packet } ' to APRS-IS" )
390
388
391
389
@keyword ("Receive APRS Packet" )
392
390
def receive_aprs_packet (self , immortal : bool = True , raw : bool = False ):
@@ -460,7 +458,7 @@ def get_msgno(self, aprs_packet):
460
458
)
461
459
462
460
# This is the core function which will extract the requested
463
- # field name from our packet(s). The packet can either be in
461
+ # field name from our packet(s). The packet can either be in
464
462
# raw format (str or bytes) OR decoded. If you try to access
465
463
# a field that does not exist, this function will raise
466
464
# an exception. Use the "check ..." methods if you want to
@@ -549,8 +547,8 @@ def check_packet_msgno(self, aprs_packet):
549
547
)
550
548
551
549
# This is the core function which will check if a field exists
552
- # in our packet(s). The packet can either be in
553
- # raw format (str or bytes) OR decoded.
550
+ # in our packet(s). The packet can either be in
551
+ # raw format (str or bytes) OR decoded.
554
552
@keyword ("APRS Message should contain" )
555
553
def check_if_field_exists_in_packet (self , aprs_packet , field_name ):
556
554
t_dict = type (dict ())
@@ -594,4 +592,4 @@ def get_alphanumeric_counter_value(numeric_counter: int):
594
592
595
593
596
594
if __name__ == "__main__" :
597
- pass
595
+ pass
0 commit comments