aboutsummaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.py b/main.py
index 9b8ea36..d1542c8 100644
--- a/main.py
+++ b/main.py
@@ -83,6 +83,9 @@ def sort_stations(stations: list[dict], sort: str) -> list[dict]:
def output_stations(stations: List[Dict[str, Any]]) -> None:
+ if not stations:
+ print("[*] No stations found.")
+ return
print(
tabulate(
stations,
git.ajschof.me — hosted by ajschofield — powered by cgit