From 41fe6723fc5bcf8bc0c7e48e559cd0c9dd13c5dd Mon Sep 17 00:00:00 2001 From: Nathan Blaney Date: Mon, 5 Aug 2013 20:56:46 +1000 Subject: [PATCH] Updated to use proper shorten --- plugins/qr.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/qr.py b/plugins/qr.py index 1867925..ae26891 100644 --- a/plugins/qr.py +++ b/plugins/qr.py @@ -8,8 +8,7 @@ def qrcode(inp, bot=None): "qrcode [link] returns a link for a QR code." link = "http://blny.tk/qr.php?q=%s" % http.quote_plus(inp) + + return web.try_isgd(link) + - try: - return web.try_isgd(link) - except (web.ShortenError, http.HTTPError): - return link