mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-22 00:44:10 +00:00
Handle case when wiki has not been found
This commit is contained in:
parent
f33be9a127
commit
969b7c14ba
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue