Skip to content

Commit c1045da

Browse files
formatting
1 parent 947104c commit c1045da

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

packetraven/connections/internet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def packets(self) -> List[APRSPacket]:
9696
except Exception as error:
9797
logging.error(f'{error.__class__.__name__} - {error}')
9898
else:
99-
logging.warning(f'query failure "{response["code"]}: {response["description"]}"', )
99+
logging.warning(f'query failure "{response["code"]}: {response["description"]}"')
100100
packets = []
101101

102102
self.__last_access_time = datetime.now()

packetraven/gui/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,10 @@ async def retrieve_packets(self):
829829
]
830830
)
831831

832-
if 'timeout' in self.__configuration['time'] and self.__time_without_packets >= self.__configuration['time']['timeout']:
832+
if (
833+
'timeout' in self.__configuration['time']
834+
and self.__time_without_packets >= self.__configuration['time']['timeout']
835+
):
833836
message = f'shutting down - no packets received for {self.__time_without_packets}'
834837
logging.info(message)
835838
teek.dialog.info('timeout', message)

packetraven/packetraven.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from datetime import datetime, timedelta
33
from getpass import getpass
44
import logging
5-
from os import PathLike
65
from pathlib import Path
76
import sys
87
import time
@@ -261,7 +260,10 @@ def packetraven_command(configuration_filename: str, gui: bool = False):
261260
datetime.now() - current_time
262261
)
263262

264-
if 'timeout' in configuration['time'] and time_without_packets >= configuration['time']['timeout']:
263+
if (
264+
'timeout' in configuration['time']
265+
and time_without_packets >= configuration['time']['timeout']
266+
):
265267
logging.info(
266268
f'shutting down - no packets received for {time_without_packets}'
267269
)

tests/test_cli.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
from os import PathLike
33
from pathlib import Path
44
import re
5-
import signal
6-
import subprocess
75
from tempfile import NamedTemporaryFile
86

97
import pytest
108

11-
from packetraven.__main__ import packetraven_command
9+
from packetraven.packetraven import packetraven_command
1210
from tests import INPUT_DIRECTORY
1311

1412

0 commit comments

Comments
 (0)