From 110eb475290cdf612dccf721606a347fb4ce23d1 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 16 Apr 2003 08:35:13 +0000 Subject: [PATCH] Qualified foldoc raise of ArgumentError. --- plugins/Http.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/Http.py b/plugins/Http.py index d2fedcf0c..b57dcfeff 100644 --- a/plugins/Http.py +++ b/plugins/Http.py @@ -129,6 +129,8 @@ class Http(callbacks.Privmsg): in fact anything having to do with computing. This commands searches that dictionary. """ + if not args: + raise callbacks.ArgumentError search = '+'.join([urllib.quote(arg) for arg in args]) url = 'http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?query=%s' % search try: