mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Added a bit more error checking in the case of bad arguments.
This commit is contained in:
parent
31d418926d
commit
df1a26900d
@ -113,6 +113,8 @@ class Dict(callbacks.Privmsg):
|
|||||||
a dictionary is specified and the definition is too long, snips it to
|
a dictionary is specified and the definition is too long, snips it to
|
||||||
an appropriate length.
|
an appropriate length.
|
||||||
"""
|
"""
|
||||||
|
if not args:
|
||||||
|
raise callbacks.ArgumentError
|
||||||
if args[0] in self.dictdbs:
|
if args[0] in self.dictdbs:
|
||||||
dictionary = args.pop(0)
|
dictionary = args.pop(0)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user