diff --git a/src/domain_manager.py b/src/domain_manager.py index 2d4666a..2e5ca36 100644 --- a/src/domain_manager.py +++ b/src/domain_manager.py @@ -174,6 +174,11 @@ class DomainManager: req_id, json_part) await connection.execute("select pg_notify('debugresponse', 'SITE END ' || $1);", req_id) + else: + await connection.execute("select pg_notify('debugresponse', 'SITE CHUNK ' || $1 || ' ' || $2);", + req_id, json.dumps({"error": "Wiki has not been found in running cache. Please make sure you've given appropriate script URL.", "url": "https://frisk.space/imgs/cat.png"})) + await connection.execute("select pg_notify('debugresponse', 'SITE END ' || $1);", + req_id) else: logger.error("Unknown pub/sub command! Payload: {}".format(payload))