diff options
author | Jordan <me@jordan.im> | 2021-12-24 15:36:51 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2021-12-24 15:36:51 -0700 |
commit | fefe88f62bb275452aee008b5345a606811b2dc3 (patch) | |
tree | a4be7706f4bb5f61dcd0f0815c3b9a892e1531d3 /allium/allium.py | |
parent | 916fa2986c4c840aed3103e3da9406b2d9aae507 (diff) | |
download | allium-fefe88f62bb275452aee008b5345a606811b2dc3.tar.gz allium-fefe88f62bb275452aee008b5345a606811b2dc3.zip |
relays: die peacefully w/ HTTP 304 (no onionoo update)
Diffstat (limited to 'allium/allium.py')
-rwxr-xr-x | allium/allium.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |