From 0e497c9d205c74839dc195c117258e32d9e49851 Mon Sep 17 00:00:00 2001 From: Michael Murtaugh Date: Mon, 1 Jun 2020 07:20:12 +0200 Subject: [PATCH] more nopublish debugging --- etherdump/commands/pull.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/etherdump/commands/pull.py b/etherdump/commands/pull.py index 0a79229..31847dd 100644 --- a/etherdump/commands/pull.py +++ b/etherdump/commands/pull.py @@ -168,15 +168,12 @@ def main (args): pass text = getjson(info['localapiurl']+'getText?'+urlencode(data)) - print ("""Checking for nopublish {} in *** -{} -***""".format(args.nopublish, text), file=sys.stderr) ########################################## ## ENFORCE __NOPUBLISH__ MAGIC WORD ########################################## - if args.nopublish and args.nopublish in text: - # NEED TO PURGE ANY EXISTING DOCS - print ("NOPUBLISH", file=sys.stderr) + if args.nopublish and args.nopublish in text['data']['text']: + # TRY TO PURGE ANY EXISTING DOCS + print ("NOPUBLISH!", file=sys.stderr) try_deleting((p+raw_ext,p+".raw.html",p+".diff.html",p+".meta.json")) continue