Commit c583bc05 by mehtank

Print errors in app.py

1 parent cbbca67d
......@@ -46,7 +46,8 @@ def make(f, path, args, mkstl=True, mkdxf=True, mksvg=True):
except KeyError:
if p == '$thickness' or p == '%24thickness':
t = float(v)
except ValueError:
except ValueError as e:
print repr(e)
pass
j = None
......@@ -62,6 +63,7 @@ def make(f, path, args, mkstl=True, mkdxf=True, mksvg=True):
thickness = t, joint = j)
stlstr = ss["graph"]["stl"]
except Exception as e:
print repr(e)
return repr(e)
return stlstr
......@@ -72,7 +74,8 @@ def catchall(path):
if '.' in path:
try:
path, ext = path.split('.')
except ValueError:
except ValueError as e:
print repr(e)
abort(400)
component = path
......@@ -80,7 +83,8 @@ def catchall(path):
if component:
try:
f = getComponent(component)
except:
except Exception as e:
print repr(e)
abort(404)
if ext == "json":
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!