diff --git a/all-reports.py b/all-reports.py index 3afc1b9..07f0c6e 100755 --- a/all-reports.py +++ b/all-reports.py @@ -79,7 +79,7 @@ def modelLink(libname, modelname, extension, text): continue else: v = one[0] - except: + except: #raise Exception("No such table '%s'; specify it using --branch=XXX" % branch) print("No such table '%s'; specify it using --branch=XXX when running test.py" % branch) # ignore this table and continue @@ -95,7 +95,8 @@ def modelLink(libname, modelname, extension, text): urlContents = urllib.request.urlopen(urlToOpen).read().decode('utf-8') except: print(urlToOpen + " failed to open") - raise + missing_branches.append(branch) + continue generated = False @@ -143,13 +144,13 @@ def modelLink(libname, modelname, extension, text): gitlog = "%s..%s" % (v1,v2) else: gitlog = "" - + try: gitloglibrarytesting = subprocess.check_output(["git", "log", '--pretty=%%h%%ai%%an%%s' % (githuburltesting), "-2"], cwd="./").decode("utf-8") except subprocess.CalledProcessError as e: print(str(e)) gitloglibrarytesting = "could not get the git log for OpenModelicaLibraryTesting" - + tpl = tpl.replace("#OMCGITLOG#",gitlog).replace("#NUMCOMMITS#",str(gitlog.count(""))).replace("#3rdParty#",thirdPartyChanged).replace("#OMCLIBRARYTESTINGGITLOG#",gitloglibrarytesting) libnames = [libname for (libname,) in cursor.execute("""SELECT libname FROM [%s] WHERE date=? GROUP BY libname""" % branch, (d2,))] startdates = {}