spesmilo / spesmilo/electrum

AttributeError: 'PaymentRequest' object has no attribute 'memo'

Open
#7,441 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 "electrum\gui\qt\__init__.py", line 418, in main
  File "electrum\gui\qt\__init__.py", line 292, in wrapper
  File "electrum\gui\qt\__init__.py", line 317, in start_new_window
  File "electrum\gui\qt\__init__.py", line 362, in _start_wizard_to_select_or_create_wallet
  File "electrum\wallet_db.py", line 73, in __init__
  File "electrum\wallet_db.py", line 106, in load_data
  File "electrum\util.py", line 420, in <lambda>
  File "electrum\util.py", line 416, in do_profile
  File "electrum\wallet_db.py", line 176, in upgrade
  File "electrum\wallet_db.py", line 586, in _convert_version_25
  File "electrum\paymentrequest.py", line 276, in get_memo
AttributeError: 'PaymentRequest' object has no attribute 'memo'

AttributeError: 'PaymentRequest' object has no attribute 'memo'

Reporter

This issue was reported by 1 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.19041-SP0 de_DE

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 with electrum/paymentrequest.py at get_memo and follow its call from electrum/wallet_db.py in _convert_version_25. Reproduce the wallet upgrade path described by the traceback, then verify that loading the affected wallet no longer raises AttributeError for PaymentRequest.memo.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.