From e5e7a9bb052751283ee72afa5492eeeb2160cc50 Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Sun, 5 Jun 2011 22:36:57 +0000 Subject: [PATCH] Do not fail on missing DB connection Signed-off-by: Luca Falavigna --- dak/show_new.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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))) -- 2.39.5