urbandict: terminate if no definition found

master
mutantmonkey 2011-12-26 22:20:59 -05:00
parent d127556c67
commit 9a5acad5f0
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ def urbandict(phenny, input):
if data['result_type'] == 'no_results':
phenny.say("No results found for {0}".format(word))
return
result = data['list'][0]
url = 'http://www.urbandictionary.com/define.php?term={0}'.format(urlquote(word))