From 1761b1f1b7659c4b107b562f5de4a7a23e2bd336 Mon Sep 17 00:00:00 2001 From: Josh Bailey Date: Sun, 9 Jun 2024 01:11:48 +0000 Subject: [PATCH] 404 --- gamutrfwaterfall/gamutrfwaterfall/flask_handler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gamutrfwaterfall/gamutrfwaterfall/flask_handler.py b/gamutrfwaterfall/gamutrfwaterfall/flask_handler.py index bae37a10..df8f7e7b 100644 --- a/gamutrfwaterfall/gamutrfwaterfall/flask_handler.py +++ b/gamutrfwaterfall/gamutrfwaterfall/flask_handler.py @@ -186,7 +186,9 @@ def serve(self, path): except ValueError: pass - return self.serve_meta(os.path.basename(self.savefig_path)) + if path: + return self.serve_meta(os.path.basename(self.savefig_path)) + return "%s: not found" % path def serve_predictions_content(self): return send_from_directory(self.tempdir, self.predictions_file)