From 63365f07426d618791a54ce879bcb4163da2e814 Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Tue, 17 Mar 2020 13:35:37 +0100 Subject: Don't produce empty feeds. --- gemfeed.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gemfeed.py b/gemfeed.py index 3d9c3d7..04b9217 100644 --- a/gemfeed.py +++ b/gemfeed.py @@ -108,6 +108,10 @@ def main(): # Add one entry per .gmi file files = find_files(args.n) + if not files: + print("No world-readable Gemini content found! :(") + return + for n, filename in enumerate(files): entry = feed.add_entry() populate_entry_from_file(filename, args.base_url, entry) -- cgit v1.2.3-54-g00ecf