PEP-8
This commit is contained in:
parent
b387b15c8f
commit
3f937dca91
1 changed files with 2 additions and 2 deletions
|
@ -12,8 +12,8 @@ def shorten(inp, bot=None):
|
||||||
api_key = bot.config.get("api_keys", {}).get("bitly_api", None)
|
api_key = bot.config.get("api_keys", {}).get("bitly_api", None)
|
||||||
if api_key is None:
|
if api_key is None:
|
||||||
return "error: no api key set"
|
return "error: no api key set"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return bitly(inp, api_user, api_key)
|
return bitly(inp, api_user, api_key)
|
||||||
except (HTTPError, ShortenError):
|
except (HTTPError, ShortenError):
|
||||||
return "Could not shorten %s!" % inp
|
return "Could not shorten '%s'!" % inp
|
||||||
|
|
Reference in a new issue