@@ -79,7 +79,7 @@ def modelLink(libname, modelname, extension, text):
7979 continue
8080 else :
8181 v = one [0 ]
82- except :
82+ except :
8383 #raise Exception("No such table '%s'; specify it using --branch=XXX" % branch)
8484 print ("No such table '%s'; specify it using --branch=XXX when running test.py" % branch )
8585 # ignore this table and continue
@@ -95,7 +95,8 @@ def modelLink(libname, modelname, extension, text):
9595 urlContents = urllib .request .urlopen (urlToOpen ).read ().decode ('utf-8' )
9696 except :
9797 print (urlToOpen + " failed to open" )
98- raise
98+ missing_branches .append (branch )
99+ continue
99100
100101 generated = False
101102
@@ -143,13 +144,13 @@ def modelLink(libname, modelname, extension, text):
143144 gitlog = "<tr><td>%s..%s</td></tr>" % (v1 ,v2 )
144145 else :
145146 gitlog = ""
146-
147+
147148 try :
148149 gitloglibrarytesting = subprocess .check_output (["git" , "log" , '--pretty=<tr><td><a href="%s/%%h">%%h</a></td><td>%%ai</td><td>%%an</td><td>%%s</td></tr>' % (githuburltesting ), "-2" ], cwd = "./" ).decode ("utf-8" )
149150 except subprocess .CalledProcessError as e :
150151 print (str (e ))
151152 gitloglibrarytesting = "<tr><td>could not get the git log for OpenModelicaLibraryTesting</td></tr>"
152-
153+
153154 tpl = tpl .replace ("#OMCGITLOG#" ,gitlog ).replace ("#NUMCOMMITS#" ,str (gitlog .count ("<tr>" ))).replace ("#3rdParty#" ,thirdPartyChanged ).replace ("#OMCLIBRARYTESTINGGITLOG#" ,gitloglibrarytesting )
154155 libnames = [libname for (libname ,) in cursor .execute ("""SELECT libname FROM [%s] WHERE date=? GROUP BY libname""" % branch , (d2 ,))]
155156 startdates = {}
0 commit comments