1
0
Fork 0

Add operatornotify to hnarchive.

This commit is contained in:
voussoir 2021-06-21 23:07:16 -07:00
parent 9793f47bb3
commit 9a64e5edd9
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -7,6 +7,7 @@ import time
from voussoirkit import backoff from voussoirkit import backoff
from voussoirkit import betterhelp from voussoirkit import betterhelp
from voussoirkit import operatornotify
from voussoirkit import ratelimiter from voussoirkit import ratelimiter
from voussoirkit import sqlhelpers from voussoirkit import sqlhelpers
from voussoirkit import threadpool from voussoirkit import threadpool
@ -396,9 +397,9 @@ def update_items_argparse(args):
insert_items(items, commit_period=args.commit_period) insert_items(items, commit_period=args.commit_period)
@operatornotify.main_decorator(subject='hnarchive.py')
@vlogging.main_decorator
def main(argv): def main(argv):
argv = vlogging.main_level_by_argv(argv)
parser = argparse.ArgumentParser(description=__doc__) parser = argparse.ArgumentParser(description=__doc__)
subparsers = parser.add_subparsers() subparsers = parser.add_subparsers()