From fe3dbba4c0a59c483f9ff8205c469e60f4946c6a Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 23 Dec 2022 18:44:47 +0000 Subject: Remove try/except around mapping, because it makes it hard to see proper error logs --- wqflask/wqflask/views.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index 7216b4e7..a7a43a22 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -752,15 +752,10 @@ def mapping_results_page(): if result: result = pickle.loads(result) else: - try: - template_vars = run_mapping.RunMapping(start_vars, temp_uuid) - if template_vars.no_results: - raise NoMappingResultsError( - start_vars["trait_id"], start_vars["dataset"], start_vars["method"]) - except Exception as exc: - rendered_template = render_template( - "mapping_error.html", error=exc, error_type=type(exc).__name__) - return rendered_template + template_vars = run_mapping.RunMapping(start_vars, temp_uuid) + if template_vars.no_results: + raise NoMappingResultsError( + start_vars["trait_id"], start_vars["dataset"], start_vars["method"]) if not template_vars.pair_scan: template_vars.js_data = json.dumps(template_vars.js_data, -- cgit v1.2.3