Updated to new web.py
This commit is contained in:
parent
0160d86a64
commit
aa80de0bb4
1 changed files with 2 additions and 2 deletions
|
@ -7,9 +7,9 @@ from util import hook, web, http
|
||||||
def qrcode(inp, bot=None):
|
def qrcode(inp, bot=None):
|
||||||
"qrcode [link] returns a link for a QR code."
|
"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:
|
try:
|
||||||
return web.isgd(link)
|
return web.try_isgd(link)
|
||||||
except (web.ShortenError, http.HTTPError):
|
except (web.ShortenError, http.HTTPError):
|
||||||
return link
|
return link
|
||||||
|
|
Reference in a new issue