- try:
- p.get(timeout=600)
- except TimeoutError:
- for htmlfile in htmlfiles_to_process:
- with open(htmlfile, "w") as fd:
- fd.write("Timed out while processing")
+ p.wait(timeout=600)
+ for htmlfile in htmlfiles_to_process:
+ with open(htmlfile, "w") as fd:
+ fd.write("Timed out while processing")