Qualified foldoc raise of ArgumentError.

This commit is contained in:
Jeremy Fincher 2003-04-16 08:35:13 +00:00
parent aafc138745
commit 110eb47529
1 changed files with 2 additions and 0 deletions

View File

@ -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: