1
0

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

This commit is contained in:
ecdsa
2013-03-03 19:20:24 +01:00
parent 54d9817098
commit 703c2c0895

View File

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