Browse Source

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

283
ecdsa 12 years ago
parent
commit
703c2c0895
  1. 5
      gui/qrcodewidget.py

5
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):

Loading…
Cancel
Save