Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with concurrent.futures.ProcessPoolExecutor(max_workers=self.load) as executor:
- futureThreadVer = {executor.submit(self.get_code(), 60):x for x in range(self.load)}
- for future in concurrent.futures.as_completed(futureThreadVer):
- threadVer = futureThreadVer[future]
- try:
- data=future.result()
- except Exception as exc:
- print("%r generated an exception : %s" %(threadVer, exc))
- else:
- print("%r page data %r" % (self.page, data))
- 3 generated an exception : 'int' object is not callable
- 1 generated an exception : 'int' object is not callable
- 0 generated an exception : 'int' object is not callable
- 2 generated an exception : 'int' object is not callable
- 4 generated an exception : 'int' object is not callable
Add Comment
Please, Sign In to add comment