InvalidOperation: [<class 'decimal.ConversionSyntax'>]

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

Nobody has claimed this yet.

Assessment

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

Research direction

Start in electrum/plugins/revealer/qt.py at calibration_dialog, especially the conversion of horizontal.text() shown in the traceback. Reproduce the calibration dialog with the reported environments or input conditions, then determine the expected handling for values that cannot be converted; done means this crash path no longer raises InvalidOperation.

Written by the indexing model from the issue text.

Description

Crash Report

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

Traceback

  File "/var/folders/r3/yl5vd3v96v9bffkvgx_2gjvw0000gn/T/_MEIQNY8aC/electrum/plugins/revealer/qt.py", line 756, in calibration_dialog
    self.calibration_h = int(Decimal(horizontal.text()))

InvalidOperation: [<class 'decimal.ConversionSyntax'>]

Reporter

This issue was reported by 8 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-19.2.0-x86_64-i386-64bit standard ?
4.2.2 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 standard en_SE
4.2.2 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 standard en_SE
4.4.5 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 standard de_DE
4.5.8 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.26100-SP0 standard en_US
4.5.8 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.26200-SP0 imported en_US
4.5.8 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 imported,standard en_US
4.5.8 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.22621-SP0 standard zh_CN

Additional Information

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

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

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.

More from spesmilo/electrum

All issues in spesmilo/electrum

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.