Skip to content

Commit b8568e3

Browse files
author
Jessica Shi
committed
two bug fixes (blue line + unsupported exceptions)
1 parent 423fa53 commit b8568e3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

javascripts/demo.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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\">";

server/taco_server.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)