Updated to use proper shorten
This commit is contained in:
parent
a02761bbd4
commit
41fe6723fc
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Reference in a new issue