Skip to content

InternalGov-v2.2.7

Latest
Compare
Choose a tag to compare
@Nadro-J Nadro-J released this 15 Jan 04:15
07fd352

What's Changed

  • Error processing referendum 1384 by @Nadro-J in #91
    • JSON key ['content'] contained no data when fetching referendum info from Polkassembly/Subsquare which cause a failure in the creation of the thread. This is because Discord expects 1 or more characters in the body. It will now return "Unable to retrieve content" when the content length is 0.

For context; this issue happened because one of the data sources cleared the content on referendum 1384 as it contained a phishing URL. Please be aware that referendum(s): 1386, 1387 are duplicates of the same phishing attempt and have not been cleared from Polkassembly or Subsquare.


If you are affected and can't see 1384 on Discord, pull the latest version; remove 1384 from data\governance.cache and restart the bot.

Make sure not to break the JSON format when removing

The key to remove

    "1384": {
        "Ongoing": {
            "alarm": [
                24489671,
                [
                    24489671,
                    0
                ]
            ],
            "deciding": null,
            "decision_deposit": null,
            "enactment": {
                "After": 100
            },
            "in_queue": false,
            "origin": {
                "Origins": "SmallTipper"
            },
            "proposal": {
                "Lookup": {
                    "hash": "0xc424ccc73fed72eb8bb01fdb6ed137e5c66524b98705cda12729d4044f2181cb",
                    "len": 41
                }
            },
            "submission_deposit": {
                "amount": 10000000000,
                "who": "12jDGSKkmiicJsRjHcZF43SVbrft572JAzfsKbH9pvoAsku4"
            },
            "submitted": 24288071,
            "tally": {
                "ayes": 0,
                "nays": 50000000000,
                "support": 50000000000000
            },
            "track": 30
        }
    }

Full Changelog: InternalGov-v2.2.6...InternalGov-v2.2.7