mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05: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
|
||||
an appropriate length.
|
||||
"""
|
||||
if not args:
|
||||
raise callbacks.ArgumentError
|
||||
if args[0] in self.dictdbs:
|
||||
dictionary = args.pop(0)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user