spesmilo / spesmilo/electrum

AttributeError: 'list' object has no attribute 'get'

Open
#5,697 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

topic-walletstorage 💾
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

  File "electrum/gui/qt/__init__.py", line 215, in wrapper
  File "electrum/gui/qt/__init__.py", line 239, in start_new_window
  File "electrum/gui/qt/__init__.py", line 284, in _start_wizard_to_select_or_create_wallet
  File "electrum/gui/qt/installwizard.py", line 329, in run_upgrades
  File "electrum/base_wizard.py", line 152, in upgrade_storage
  File "electrum/gui/qt/installwizard.py", line 501, in waiting_dialog
  File "electrum/base_wizard.py", line 145, in on_finished
  File "electrum/base_wizard.py", line 149, in do_upgrade
  File "electrum/storage.py", line 233, in upgrade
  File "electrum/util.py", line 356, in <lambda>
  File "electrum/util.py", line 352, in do_profile
  File "electrum/json_db.py", line 204, in upgrade
  File "electrum/json_db.py", line 447, in _convert_imported

AttributeError: 'list' object has no attribute 'get'

Reporter

This issue was reported by 1 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
3.3.8 3.6.4 (default, Feb 28 2018, 03:24:19) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] Darwin-18.7.0-x86_64-i386-64bit imported ?

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/json_db.py at upgrade and _convert_imported, then follow the wallet data passed from electrum/storage.py during the upgrade path. Compare the imported wallet structure with the .get call and verify that upgrading this wallet no longer raises the reported AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.