urbandict: terminate if no definition found

This commit is contained in:
mutantmonkey
2011-12-26 22:20:59 -05:00
parent d127556c67
commit 9a5acad5f0

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))