diff --git a/app.py b/app.py index 90a596a..f6e6d0e 100644 --- a/app.py +++ b/app.py @@ -38,7 +38,10 @@ def report(): @app.route("/ts/") def get_timeseries(id): - ts = LTS(id=id) + try: + ts = LTS(id=id) + except FileNotFoundError: + abort(404) return jsonify({"description": ts.description, "data": ts.data}) def verify_node(d):