Updated to use proper shorten

This commit is contained in:
Nathan Blaney 2013-08-05 20:56:46 +10:00
parent a02761bbd4
commit 41fe6723fc

View file

@ -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