From 005675cb467863f54db1cf5ffc94f5693326b72d Mon Sep 17 00:00:00 2001 From: Hemna Date: Mon, 10 Jul 2023 11:01:41 -0400 Subject: [PATCH] Fixed pep8 errors --- aprsd/cmds/fetch_stats.py | 3 +-- aprsd/plugins/location.py | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/aprsd/cmds/fetch_stats.py b/aprsd/cmds/fetch_stats.py index ebe90e5..1993213 100644 --- a/aprsd/cmds/fetch_stats.py +++ b/aprsd/cmds/fetch_stats.py @@ -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}'" console = Console() - with console.status(msg) as status: + with console.status(msg): client = rpc_client.RPCClient(ip_address, port, magic_word) stats = client.get_stats_dict() console.print_json(data=stats) @@ -110,7 +110,6 @@ def fetch_stats(ctx, ip_address, port, magic_word): console.print(packets_table) - if "plugins" in stats: count = len(stats["plugins"]) plugins_table = Table(title=f"Plugins ({count})") diff --git a/aprsd/plugins/location.py b/aprsd/plugins/location.py index 7663746..5b21a2b 100644 --- a/aprsd/plugins/location.py +++ b/aprsd/plugins/location.py @@ -71,8 +71,6 @@ class LocationPlugin(plugin.APRSDRegexCommandPluginBase, plugin.APRSFIKEYMixin): area_info = f"{address.get('country'), 'Unknown'}" except Exception as ex: LOG.error(f"Failed to fetch Geopy address {ex}") - print("FUICK") - print(ex) area_info = "Unknown Location" try: # altitude not always provided