Update plugins/shorten.py

This commit is contained in:
lukeroge 2012-02-26 22:08:36 +13:00
parent dcdc3341e3
commit d5c81f6079

View file

@ -2,15 +2,10 @@
# <lukeroge@gmail.com> <https://github.com/lukeroge/CloudBot/> # <lukeroge@gmail.com> <https://github.com/lukeroge/CloudBot/>
from util import hook, http from util import hook, http
try:
from re import match from re import match
from urllib2 import urlopen, Request, HTTPError from urllib2 import urlopen, Request, HTTPError
from urllib import urlencode from urllib import urlencode
except ImportError, e:
raise Exception('Required module missing: %s' % e.args[0])
class ShortenError(Exception): class ShortenError(Exception):
def __init__(self, value): def __init__(self, value):
self.value = value self.value = value