diff options
author | zsloan | 2022-12-23 18:44:47 +0000 |
---|---|---|
committer | zsloan | 2022-12-23 19:04:24 +0000 |
commit | fe3dbba4c0a59c483f9ff8205c469e60f4946c6a (patch) | |
tree | 4ce43214129963d64a2d69a986a86a875f714444 /wqflask | |
parent | c4d2336c0ad842b19f11f3624a3cab8e1ffd1201 (diff) | |
download | genenetwork2-fe3dbba4c0a59c483f9ff8205c469e60f4946c6a.tar.gz |
Remove try/except around mapping, because it makes it hard to see proper error logs
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/views.py | 13 |
1 files 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, |