Qualified foldoc raise of ArgumentError.

This commit is contained in:
Jeremy Fincher 2003-04-16 08:35:13 +00:00
parent aafc138745
commit 110eb47529

View File

@ -129,6 +129,8 @@ class Http(callbacks.Privmsg):
in fact anything having to do with computing. This commands searches in fact anything having to do with computing. This commands searches
that dictionary. that dictionary.
""" """
if not args:
raise callbacks.ArgumentError
search = '+'.join([urllib.quote(arg) for arg in args]) search = '+'.join([urllib.quote(arg) for arg in args])
url = 'http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?query=%s' % search url = 'http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?query=%s' % search
try: try: