From bd81273c6cb798940278672c6d3e7d154d041adf Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Tue, 15 Aug 2017 15:22:42 +0200 Subject: [PATCH] Continue checking remaining PRDs after broken one. --- tclcheck.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tclcheck.py b/tclcheck.py index deb89e4..1468091 100644 --- a/tclcheck.py +++ b/tclcheck.py @@ -99,9 +99,14 @@ if __name__ == "__main__": prdx = afile.read() prds = list(filter(None, prdx.split("\n"))) for prd in prds: - main2(sess, serid, prd) + try: + main2(sess, serid, prd) + except: + print("{} failed.".format(prd)) + continue else: curef = sys.argv[1] + main(sess, serid, curef) else: curef = "PRD-63764-001" - main(sess, serid, curef) + main(sess, serid, curef)