diff options
author | Jordan <me@jordan.im> | 2023-12-31 17:47:38 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2023-12-31 17:47:38 -0700 |
commit | d589e5d23ee4e760464383b1f3e0226867ceefc2 (patch) | |
tree | 4af8a8b8414c2577b05306ef884cc388eadda87a | |
parent | 924a3bd1ed866b4211a7f1cf94a13a80f10083af (diff) | |
download | allium-d589e5d23ee4e760464383b1f3e0226867ceefc2.tar.gz allium-d589e5d23ee4e760464383b1f3e0226867ceefc2.zip |
misc: return non-zero exit status if current relay set is up to date
-rw-r--r-- | allium/lib/relays.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/allium/lib/relays.py b/allium/lib/relays.py index ba5a0ca..7be77f5 100644 --- a/allium/lib/relays.py +++ b/allium/lib/relays.py @@ -9,6 +9,7 @@ import hashlib import json import os import re +import sys import time import urllib.request from shutil import rmtree @@ -55,7 +56,7 @@ class Relays(): except urllib.error.HTTPError as err: if err.code == 304: print("no onionoo update since last run, dying peacefully...") - return + sys.exit(1) else: raise(err) |