Skip to content

IndexError: list index out of range #10231

@TARS-bot

Description

@TARS-bot

Crash Report

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

Traceback

Traceback (most recent call last):
  File "/tmp/.mount_electrmKS9MV/usr/lib/python3.12/site-packages/electrum/gui/qt/swap_dialog.py", line 170, in timer_actions
    self.update_tx()
  File "/tmp/.mount_electrmKS9MV/usr/lib/python3.12/site-packages/electrum/gui/qt/swap_dialog.py", line 368, in update_tx
    tx = self._create_tx_safe('!')
         ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/.mount_electrmKS9MV/usr/lib/python3.12/site-packages/electrum/gui/qt/swap_dialog.py", line 401, in _create_tx_safe
    return self._create_tx(onchain_amount=onchain_amount)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/.mount_electrmKS9MV/usr/lib/python3.12/site-packages/electrum/gui/qt/swap_dialog.py", line 389, in _create_tx
    tx = self.window.wallet.make_unsigned_transaction(
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/.mount_electrmKS9MV/usr/lib/python3.12/site-packages/electrum/util.py", line 516, in do_profile
    o = func(*args, **kw_args)
        ^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/.mount_electrmKS9MV/usr/lib/python3.12/site-packages/electrum/wallet.py", line 2100, in make_unsigned_transaction
    change_addr = self.get_change_addresses_for_new_transaction(change_addr)[0]
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

IndexError: list index out of range

Reporter

This issue was reported by 2 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.6.2 3.12.11 (main, Jun 28 2018, 19:01:02) [GCC 10.2.1 20210110] Linux-6.16.3-200.fc42.x86_64-x86_64-with-glibc2.41 standard en_CA
4.6.0 3.12.11 (main, Jun 28 2018, 19:01:02) [GCC 10.2.1 20210110] Linux-6.16.3-200.fc42.x86_64-x86_64-with-glibc2.41 standard en_CA

Additional Information

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions