mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-09 12:29:22 +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
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user