From: Luca Falavigna Date: Sun, 5 Jun 2011 22:36:57 +0000 (+0000) Subject: Do not fail on missing DB connection X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=e5e7a9bb052751283ee72afa5492eeeb2160cc50;hp=c20a288af636458a404f8f92b499ba3c17b240e0;p=dak.git Do not fail on missing DB connection Signed-off-by: Luca Falavigna --- diff --git a/dak/show_new.py b/dak/show_new.py index 194559c2..ae87b001 100755 --- a/dak/show_new.py +++ b/dak/show_new.py @@ -279,12 +279,10 @@ def main(): pool = DakProcessPool() p = pool.map_async(do_pkg, changes_files) pool.close() - 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") files = set(os.listdir(cnf["Show-New::HTMLPath"])) to_delete = filter(lambda x: x.endswith(".html"), files.difference(set(sources)))