git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
54d9817
)
qr codes: handle exception raised if the string is too long
author
ecdsa
<ecdsa@github>
Sun, 3 Mar 2013 18:20:24 +0000 (19:20 +0100)
committer
ecdsa
<ecdsa@github>
Sun, 3 Mar 2013 18:20:24 +0000 (19:20 +0100)
gui/qrcodewidget.py
patch
|
blob
|
history
diff --git
a/gui/qrcodewidget.py
b/gui/qrcodewidget.py
index
8f964b0
..
048b734
100644
(file)
--- 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):