From f914a48b53ddc3b27c4fb5814f538f0699177f3c Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 3 Oct 2020 13:45:00 +0200 Subject: [PATCH] Add hack to get back correct parsing of pads --- etherpump/commands/pull.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etherpump/commands/pull.py b/etherpump/commands/pull.py index a8044bf..567d1ca 100644 --- a/etherpump/commands/pull.py +++ b/etherpump/commands/pull.py @@ -280,6 +280,12 @@ async def handle_pad(args, padid, data, info, session): reason = "PANIC, couldn't download the pad contents" break + # Note(decentral1se): cannot track this bug down but basically the `data` + # and `padid` are getting out of sync and it is ending up that the same pad + # over and over again is downloaded. This resets things in a way that it + # works. This is a hack and one day TM I will find out how to fix it proper + data["padID"] = padid + if skip: print("[ ] {} (skipped, reason: {})".format(padid, reason)) return