tqr codes: handle exception raised if the string is too long - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 703c2c0895295bfc50ce6d9f7b155660c8f6ff36 DIR parent 54d9817098bb926c1f6f8b2d205b5e77b2fed91e HTML 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: M gui/qrcodewidget.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- DIR diff --git a/gui/qrcodewidget.py b/gui/qrcodewidget.py t@@ -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):