]> jfr.im git - erebus.git/blobdiff - modules/youtube.py
Fixed header
[erebus.git] / modules / youtube.py
index a0c9c9d5f52fef26be9093b6b20d5321e7553f5a..e1c61a39ce4b3bd1d135f746cfd9562e2a4754ea 100644 (file)
@@ -1,5 +1,5 @@
 # Erebus IRC bot - Author: Conny Sjoblom
-# Spotify URL Checker
+# Youtube URL Checker
 # This file is released into the public domain; see http://unlicense.org/
 
 # module info
@@ -66,7 +66,4 @@ def privmsg_hook(bot, line):
                        html_parser = HTMLParser.HTMLParser()
                        respdata = urllib2.urlopen(url).read()
                        soup = BeautifulSoup(respdata)
-                       try:
-                               bot.msg(line.split()[2], BeautifulSoup(soup.title.string, convertEntities=BeautifulSoup.HTML_ENTITIES))
-                       except:
-                               pass
+                       bot.msg(line.split()[2], BeautifulSoup(soup.title.string, convertEntities=BeautifulSoup.HTML_ENTITIES))