spesmilo / spesmilo/electrum

TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'

Open
#4,549 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug 🐞
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 "site-packages\electrum-3.1.3-py3.5.egg\electrum_gui\qt\main_window.py", line 3111, in f

TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'

Reporter

This issue was reported by 7 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
3.1.3 Windows-7-6.1.7601-SP1 standard ru_RU
3.1.3 Windows-10-10.0.16299-SP0 standard en_US
3.2.3 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-17.7.0-x86_64-i386-64bit standard ?
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-7-6.1.7601-SP1 standard pl_PL
3.2.3 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] Linux-4.15.0-43-generic-x86_64-with-LinuxMint-18.3-sylvia standard en_US
3.2.2 Windows-8.1-6.3.9600-SP0 standard en_US
3.1.2 Windows-10-10.0.18362-SP0 standard en_US

Additional Information

"cut" the proposed fee size to see how much that was worth from the CPFP screen


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/main_window.py at line 3111 and trace the CPFP screen flow described in the report, especially the action that cuts the proposed fee size. Identify which value is None before the subtraction, then verify the fix against the reported crash scenario and confirm that the CPFP screen no longer raises this TypeError.

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
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.