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)