

def run(self):
    for i in range(should_print.nrequests_per_thread):
        try:
            get(url)
        except Exception as e:
            print(e)
            if (not options.continue_):
                thread.interrupt_main()
                thread.exit()
            self.errors += 1
        with URLGetterThread.counter_lock:
            URLGetterThread.counter += 1
            counter = URLGetterThread.counter
        should_print = (options.verbose and (not (counter % 1000)))
        if should_print:
            print(counter)

dataset/ETHPy150Open mongodb/mongo-python-driver/test/mod_wsgi_test/test_client.py URLGetterThread.run/VarMisuse@15/16 `self`->`should_print`