[spesmilo/electrum] TypeError: slice indices must be integers or None or have an __index__ method (#4643)

looks very similar to https://github.com/spesmilo/electrum/issues/4504