diff --git a/changedetectionio/model/Watch.py b/changedetectionio/model/Watch.py index 46ed31e6a..a93165a11 100644 --- a/changedetectionio/model/Watch.py +++ b/changedetectionio/model/Watch.py @@ -89,9 +89,8 @@ class model(watch_base): ready_url = jinja_render(template_str=url) except Exception as e: logger.critical(f"Invalid URL template for: '{url}' - {str(e)}") - from flask import ( - flash, Markup, url_for - ) + from flask import flash, url_for + from markupsafe import Markup message = Markup('The URL {} is invalid and cannot be used, click to edit'.format( url_for('ui.ui_edit.edit_page', uuid=self.get('uuid')), self.get('url', ''))) flash(message, 'error')