add a default value to data for the foreach function
This commit is contained in:
parent
92a4fea8a9
commit
d5c3059a18
|
@ -202,7 +202,7 @@ class Config:
|
||||||
'message_sent': [ True, 'sounds/sent.wav' ],
|
'message_sent': [ True, 'sounds/sent.wav' ],
|
||||||
}
|
}
|
||||||
|
|
||||||
def foreach(self, cb, data):
|
def foreach(self, cb, data = None):
|
||||||
for opt in self.__options:
|
for opt in self.__options:
|
||||||
cb(data, opt, None, self.__options[opt])
|
cb(data, opt, None, self.__options[opt])
|
||||||
for opt in self.__options_per_key:
|
for opt in self.__options_per_key:
|
||||||
|
|
Loading…
Reference in New Issue