diff options
author | Jordan <me@jordan.im> | 2023-02-06 17:44:27 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2023-02-06 17:44:27 -0700 |
commit | 1b2ece5d54d1ee0a71441846992edd3c6b8120f2 (patch) | |
tree | 956463592d2f2f85522fdb3d827160e107e39f34 | |
parent | 4bae73185720eda7d4b9c6a3b9dd3c50938553b6 (diff) | |
download | asn-1b2ece5d54d1ee0a71441846992edd3c6b8120f2.tar.gz asn-1b2ece5d54d1ee0a71441846992edd3c6b8120f2.zip |
asn: sys.exit() after auxiliary update/populate routines
-rwxr-xr-x | asn.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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}') |