# -*- coding: utf-8 -*-
import sys
import io

from proxypool.scheduler import Scheduler

sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')


def main():
    try:
        scheduler = Scheduler()
        scheduler.run()
    except Exception as e:
        print(repr(e.args))
        main()


if __name__ == '__main__':
    main()
# -*- coding: utf-8 -*-
import sys
import io

from proxypool.scheduler import Scheduler

sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')


def main():
    try:
        scheduler = Scheduler()
        scheduler.run()
    except Exception as e:
        print(repr(e.args))
        main()


if __name__ == '__main__':
    main()
# -*- coding: utf-8 -*-