From db70d267ebc6eca375c2a5b3253ed246dddcb2ec Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Fri, 23 Jul 2010 12:28:12 +0200 Subject: Minor improvement when a URL is too long for the QR Code generation. --- PyQRNative.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'PyQRNative.py') diff --git a/PyQRNative.py b/PyQRNative.py index 2d3dd489..929e8e49 100644 --- a/PyQRNative.py +++ b/PyQRNative.py @@ -278,9 +278,9 @@ class QRCode: if (buffer.getLengthInBits() > totalDataCount * 8): raise Exception("code length overflow. (" - + buffer.getLengthInBits() + + str(buffer.getLengthInBits()) + ">" - + totalDataCount * 8 + + str(totalDataCount * 8) + ")") #// end code -- cgit