From fefe88f62bb275452aee008b5345a606811b2dc3 Mon Sep 17 00:00:00 2001 From: Jordan Date: Fri, 24 Dec 2021 15:36:51 -0700 Subject: relays: die peacefully w/ HTTP 304 (no onionoo update) --- allium/allium.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'allium/allium.py') diff --git a/allium/allium.py b/allium/allium.py index a17002e..a3d6af8 100755 --- a/allium/allium.py +++ b/allium/allium.py @@ -40,6 +40,9 @@ if __name__ == '__main__': # object containing onionoo data and processing routines RELAY_SET = Relays(args.output_dir, args.onionoo_url) + if RELAY_SET.json == None: + sys.exit(0) + RELAY_SET.create_output_dir() # index and "all" HTML relay sets; index set limited to 500 relays -- cgit v1.2.3-54-g00ecf