mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +01:00
Qualified foldoc raise of ArgumentError.
This commit is contained in:
parent
aafc138745
commit
110eb47529
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user