use global GrumbleError for web exceptions

This commit is contained in:
mutantmonkey
2012-06-01 22:17:09 -07:00
parent 28cde318a8
commit 9add0985ec
16 changed files with 85 additions and 81 deletions

View File

@@ -25,8 +25,8 @@ def imdb(phenny, input):
if not query: return phenny.reply('.imdb what?')
m = imdb_search(query)
try:
phenny.reply('{0} ({1}): {2} http://imdb.com/title/{3}'.format(m['Title'], m['Year'], m['Plot'], m['imdbID']))
try:
phenny.reply('{0} ({1}): {2} http://imdb.com/title/{3}'.format(m['Title'], m['Year'], m['Plot'], m['imdbID']))
except:
phenny.reply("No results found for '%s'." % query)
phenny.reply("No results found for '%s'." % query)
imdb.commands = ['imdb']