From aa80de0bb4ea858a2a5769981d01b08626ef5a8b Mon Sep 17 00:00:00 2001 From: Nathan Blaney Date: Mon, 5 Aug 2013 20:30:58 +1000 Subject: [PATCH] Updated to new web.py --- plugins/qr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/qr.py b/plugins/qr.py index 1502000..2c334cc 100644 --- a/plugins/qr.py +++ b/plugins/qr.py @@ -7,9 +7,9 @@ from util import hook, web, http 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) + link = "http://blny.tk/qr.php?q=%s" % http.get_url(inp) try: - return web.isgd(link) + return web.try_isgd(link) except (web.ShortenError, http.HTTPError): return link