File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -260,6 +260,7 @@ function demo() {
260260 listTensorsBody += "<i class=\"mdl-icon-toggle__label " ;
261261 listTensorsBody += "material-icons\">keyboard_arrow_down</i>" ;
262262 listTensorsBody += "</label>" ;
263+ listTensorsBody += "<label class=\"mdl-textfield__label\"></label>" ;
263264 listTensorsBody += "<ul class=\"formats dropdown-menu\" for=\"" ;
264265 listTensorsBody += formatNameId ;
265266 listTensorsBody += "\">" ;
@@ -269,7 +270,7 @@ function demo() {
269270 listTensorsBody += formatNameId + "_" + name + "\" >" ;
270271 listTensorsBody += name + "</a></li>" ;
271272 }
272- listTensorsBody += "</div></td>" ;
273+ listTensorsBody += "</ul></ div></td>" ;
273274
274275 listTensorsBody += "<td class=\"mdl-data-table__cell--non-numeric\" " ;
275276 listTensorsBody += "style=\"padding: 0px\">" ;
Original file line number Diff line number Diff line change @@ -48,8 +48,10 @@ def do_POST(self):
4848 response ['error' ] = 'Server is unable to process the request in a timely manner'
4949 logFile = "/home/ubuntu/timeout.log"
5050 except subprocess .CalledProcessError as e :
51- response ['error' ] = re .compile (':\n .*\n ' ).search (e .output .decode ()).group ()[3 :- 1 ]
52- if response ['error' ].strip () == "" :
51+ search = re .compile (':\n .*\n ' ).search (e .output .decode ())
52+ if search is not None :
53+ response ['error' ] = search .group ()[3 :- 1 ]
54+ else :
5355 response ['error' ] = 'Expression is currently not supported'
5456 logFile = "/home/ubuntu/errors.log"
5557 except :
You can’t perform that action at this time.
0 commit comments