electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 703c2c0895295bfc50ce6d9f7b155660c8f6ff36
parent 54d9817098bb926c1f6f8b2d205b5e77b2fed91e
Author: ecdsa <ecdsa@github>
Date:   Sun,  3 Mar 2013 19:20:24 +0100

qr codes: handle exception raised if the string is too long

Diffstat:
Mgui/qrcodewidget.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gui/qrcodewidget.py b/gui/qrcodewidget.py @@ -28,7 +28,10 @@ class QRCodeWidget(QWidget): if self.addr and not self.qr: self.qr = pyqrnative.QRCode(self.size, pyqrnative.QRErrorCorrectLevel.L) self.qr.addData(self.addr) - self.qr.make() + try: + self.qr.make() + except: + self.qr=None self.update() def paintEvent(self, e):