fix: Avoid "None" in URL field if no predefined URL is given.

pull/256/head
Raphaël Vinot 2021-09-03 17:07:48 +02:00
parent e213cb5ae8
commit 60f4a09d28
1 changed files with 1 additions and 1 deletions

View File

@ -771,7 +771,7 @@ def _prepare_capture_template(user_ua: Optional[str], predefined_url: Optional[s
flash('The request will be enqueued, but capturing may take a while and require the administrator to wake up.', 'error')
return render_template('capture.html', user_agents=user_agents, default=default_ua,
max_depth=max_depth, personal_ua=user_ua,
predefined_url_to_capture=predefined_url)
predefined_url_to_capture=predefined_url if predefined_url else '')
@app.route('/recapture/<string:tree_uuid>', methods=['GET'])