mirror of
https://github.com/craigerl/aprsd.git
synced 2025-09-04 06:07:48 -04:00
Fixed pep8 errors
This commit is contained in:
parent
191e1ff552
commit
005675cb46
@ -50,7 +50,7 @@ def fetch_stats(ctx, ip_address, port, magic_word):
|
|||||||
msg = f"Fetching stats from {ip_address}:{port} with magic word '{magic_word}'"
|
msg = f"Fetching stats from {ip_address}:{port} with magic word '{magic_word}'"
|
||||||
|
|
||||||
console = Console()
|
console = Console()
|
||||||
with console.status(msg) as status:
|
with console.status(msg):
|
||||||
client = rpc_client.RPCClient(ip_address, port, magic_word)
|
client = rpc_client.RPCClient(ip_address, port, magic_word)
|
||||||
stats = client.get_stats_dict()
|
stats = client.get_stats_dict()
|
||||||
console.print_json(data=stats)
|
console.print_json(data=stats)
|
||||||
@ -110,7 +110,6 @@ def fetch_stats(ctx, ip_address, port, magic_word):
|
|||||||
|
|
||||||
console.print(packets_table)
|
console.print(packets_table)
|
||||||
|
|
||||||
|
|
||||||
if "plugins" in stats:
|
if "plugins" in stats:
|
||||||
count = len(stats["plugins"])
|
count = len(stats["plugins"])
|
||||||
plugins_table = Table(title=f"Plugins ({count})")
|
plugins_table = Table(title=f"Plugins ({count})")
|
||||||
|
@ -71,8 +71,6 @@ class LocationPlugin(plugin.APRSDRegexCommandPluginBase, plugin.APRSFIKEYMixin):
|
|||||||
area_info = f"{address.get('country'), 'Unknown'}"
|
area_info = f"{address.get('country'), 'Unknown'}"
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
LOG.error(f"Failed to fetch Geopy address {ex}")
|
LOG.error(f"Failed to fetch Geopy address {ex}")
|
||||||
print("FUICK")
|
|
||||||
print(ex)
|
|
||||||
area_info = "Unknown Location"
|
area_info = "Unknown Location"
|
||||||
|
|
||||||
try: # altitude not always provided
|
try: # altitude not always provided
|
||||||
|
Loading…
x
Reference in New Issue
Block a user