spesmilo / spesmilo/electrum

KeyError: 'date'

Open
#9,044 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.6k
Forks
3.5k
Avg merge
2d 8h
Merged PRs (30d)
61

Description

Crash Report

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

Traceback

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/electrum/gui/qt/history_list.py", line 530, in on_combo
    self.hide_rows()
  File "/usr/lib/python3.12/site-packages/electrum/gui/qt/my_treeview.py", line 405, in hide_rows
    self.hide_row(row)
  File "/usr/lib/python3.12/site-packages/electrum/gui/qt/my_treeview.py", line 382, in hide_row
    should_hide = self.should_hide(row_num)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/electrum/gui/qt/history_list.py", line 464, in should_hide
    date = tx_item['date']
           ~~~~~~~^^^^^^^^
KeyError: 'date'

KeyError: 'date'

Reporter

This issue was reported by 1 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.5.4 3.12.3 (main, Apr 23 2024, 09:16:07) [GCC 13.2.1 20240417] Linux-6.8.9-arch1-2-x86_64-with-glibc2.39 standard fr_FR

Additional Information

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in electrum/gui/qt/history_list.py at on_combo and should_hide, then follow how tx_item rows are constructed before the failing date lookup. Reproduce the history-filter action and confirm it no longer raises KeyError for rows missing date.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.