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

Crash Report
============

This crash report was reported through the automatic crash reporting system 🤖

Traceback
—————

«`Python traceback
File «/data/user/0/org.electrum.electrum/files/app/crystax_python/site-packages/kivy/core/window/window_sdl2.py», line 727, in mainloop
self._mainloop()
File «/data/user/0/org.electrum.electrum/files/app/crystax_python/site-packages/kivy/core/window/window_sdl2.py», line 670, in _mainloop
self.dispatch(‘on_textinput’, text)
File «kivy/_event.pyx», line 703, in kivy._event.EventDispatcher.dispatch
File «kivy/_event.pyx», line 1214, in kivy._event.EventObservers.dispatch
File «kivy/_event.pyx», line 1138, in kivy._event.EventObservers._dispatch
File «/data/user/0/org.electrum.electrum/files/app/crystax_python/site-packages/kivy/core/window/__init__.py», line 154, in _on_window_textinput
return self.dispatch(‘on_textinput’, text)
File «kivy/_event.pyx», line 703, in kivy._event.EventDispatcher.dispatch
File «kivy/_event.pyx», line 1214, in kivy._event.EventObservers.dispatch
File «kivy/_event.pyx», line 1138, in kivy._event.EventObservers._dispatch
File «/data/user/0/org.electrum.electrum/files/app/crystax_python/site-packages/kivy/uix/textinput.py», line 2480, in keyboard_on_textinput
self.insert_text(text, False)
File «/data/user/0/org.electrum.electrum/files/app/crystax_python/site-packages/kivy/uix/textinput.py», line 700, in insert_text
new_text = text[:cc] + substring + text[cc:]

TypeError: slice indices must be integers or None or have an __index__ method
«`

Reporter
————

This issue was reported by 1 user(s):

| Electrum Version | Python Version | Operating System | Wallet Type | Locale |
|—|—|—|—|—|
| 3.2.2 | | Android 7.1.1 on lge mlv7 (NMF26X) | standard | ? |

Additional Information
————————

The reporting user(s) did not provide additional information.