mirror of https://github.com/CIRCL/lookyloo
fix: Avoid stacktrace on partially broken capture.
parent
e410b7631e
commit
260ca14b70
|
@ -561,8 +561,12 @@ def export(tree_uuid: str):
|
||||||
|
|
||||||
@app.route('/tree/<string:tree_uuid>/urls_rendered_page', methods=['GET'])
|
@app.route('/tree/<string:tree_uuid>/urls_rendered_page', methods=['GET'])
|
||||||
def urls_rendered_page(tree_uuid: str):
|
def urls_rendered_page(tree_uuid: str):
|
||||||
|
try:
|
||||||
urls = lookyloo.get_urls_rendered_page(tree_uuid)
|
urls = lookyloo.get_urls_rendered_page(tree_uuid)
|
||||||
return render_template('urls_rendered.html', base_tree_uuid=tree_uuid, urls=urls)
|
return render_template('urls_rendered.html', base_tree_uuid=tree_uuid, urls=urls)
|
||||||
|
except Exception:
|
||||||
|
flash('Unable to find the rendered node in this capture, cannot get the URLs.', 'error')
|
||||||
|
return redirect(url_for('tree', tree_uuid=tree_uuid))
|
||||||
|
|
||||||
|
|
||||||
@app.route('/tree/<string:tree_uuid>/hashlookup', methods=['GET'])
|
@app.route('/tree/<string:tree_uuid>/hashlookup', methods=['GET'])
|
||||||
|
|
Loading…
Reference in New Issue