aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2023-02-06 17:44:27 -0700
committerJordan <me@jordan.im>2023-02-06 17:44:27 -0700
commit1b2ece5d54d1ee0a71441846992edd3c6b8120f2 (patch)
tree956463592d2f2f85522fdb3d827160e107e39f34
parent4bae73185720eda7d4b9c6a3b9dd3c50938553b6 (diff)
downloadasn-1b2ece5d54d1ee0a71441846992edd3c6b8120f2.tar.gz
asn-1b2ece5d54d1ee0a71441846992edd3c6b8120f2.zip
asn: sys.exit() after auxiliary update/populate routines
-rwxr-xr-xasn.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/asn.py b/asn.py
index db94fb8..7d69c95 100755
--- a/asn.py
+++ b/asn.py
@@ -356,6 +356,7 @@ if __name__ == '__main__':
if args.populate:
log.info('creating and populating db cache...')
db.populate_db()
+ sys.exit()
if args.update:
log.info('checking remote repository for new dataset...')
@@ -364,6 +365,7 @@ if __name__ == '__main__':
db.populate_db()
else:
log.info('no changes since last update')
+ sys.exit()
if (args.whois_v4 or args.whois_v6) and args.whois_port:
log.info(f'WHOIS: listening on {args.whois_port}')