From 3c66a3d98bab8b6b99970274674dfddc2097f808 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sun, 14 Apr 2013 21:03:06 -0500 Subject: [PATCH] Fix the other one too --- commands/dictionary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/dictionary.py b/commands/dictionary.py index 6b18672..47f5b74 100644 --- a/commands/dictionary.py +++ b/commands/dictionary.py @@ -19,7 +19,7 @@ class UrbanDictionary(Command): return q = ' '.join(data.args) - url = "http://api.urbandictionary.com/v0/define?term={}" + url = "http://api.urbandictionary.com/v0/define?term={0}" q = quote(q, safe="") query = urlopen(url.format(q)).read() res = loads(query)