TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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