diff --git a/changedetectionio/model/Watch.py b/changedetectionio/model/Watch.py index 18dde9249..c2a8b9f57 100644 --- a/changedetectionio/model/Watch.py +++ b/changedetectionio/model/Watch.py @@ -663,9 +663,8 @@ class model(watch_base): def compile_error_texts(self, has_proxies=None): """Compile error texts for this watch. Accepts has_proxies parameter to ensure it works even outside app context""" - from flask import ( - Markup, url_for - ) + from flask import url_for + from markupsafe import Markup output = [] # Initialize as list since we're using append last_error = self.get('last_error','')