aboutsummaryrefslogtreecommitdiff
path: root/source/pyAggr3g470r.py
diff options
context:
space:
mode:
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-xsource/pyAggr3g470r.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index 17cfb549..9ce14db5 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -464,12 +464,10 @@ class Root:
if not os.path.isfile("./var/qrcode/" + article_id + ".png"):
# QR Code generation
try:
- if len(utils.clear_string(description)) > 4296:
- raise Exception()
- f = qr.QRUrl(url = utils.clear_string(description))
+ f = qr.QRUrl(url = article["article_link"])
f.make()
except:
- f = qr.QRUrl(url = article["article_link"])
+ f = qr.QRUrl(url = "URL too long.")
f.make()
f.save("./var/qrcode/"+article_id+".png")
bgstack15