From aaceb4ebadcbf69c79aef58b84c8cb2f8b9d6688 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 11 Jul 2023 10:44:21 +0200 Subject: [PATCH] Scan/Recheck proxies - Report filter not found as "OK" but with warning --- changedetectionio/blueprint/check_proxies/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/changedetectionio/blueprint/check_proxies/__init__.py b/changedetectionio/blueprint/check_proxies/__init__.py index 50389dee..a1c76cf6 100644 --- a/changedetectionio/blueprint/check_proxies/__init__.py +++ b/changedetectionio/blueprint/check_proxies/__init__.py @@ -50,6 +50,8 @@ def construct_blueprint(datastore: ChangeDetectionStore): status.update({'status': 'ERROR', 'length': len(contents), 'text': f"403 - Access denied"}) else: status.update({'status': 'ERROR', 'length': len(contents), 'text': f"Status code: {e.status_code}"}) + except text_json_diff.FilterNotFoundInResponse: + status.update({'status': 'OK', 'length': len(contents), 'text': f"OK but CSS/xPath filter not found (page changed layout?)"}) except content_fetcher.EmptyReply as e: status.update({'status': 'ERROR OTHER', 'length': len(contents) if contents else 0, 'text': "Empty reply, needs chrome?"}) except Exception as e: