From b23ade4cd8d3a95b7109ad1f4eac94b0e3b97efe Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 3 Oct 2020 13:13:04 +0200 Subject: [PATCH] Nopublish is always set so only check if it is in text --- etherpump/commands/pull.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etherpump/commands/pull.py b/etherpump/commands/pull.py index e49e45e..e4547db 100644 --- a/etherpump/commands/pull.py +++ b/etherpump/commands/pull.py @@ -298,14 +298,14 @@ async def handle_pad(args, padid, data, info, session): ver = {"type": "text"} versions.append(ver) ver["code"] = text["_code"] + if text["_code"] == 200: text = text["data"]["text"] ########################################## ## ENFORCE __NOPUBLISH__ MAGIC WORD ########################################## - if args.nopublish and args.nopublish in text: - # NEED TO PURGE ANY EXISTING DOCS + if args.nopublish in text: try_deleting( ( p + raw_ext,