Skip to content
Snippets Groups Projects
Commit d5c3059a authored by Vincent Hanquez's avatar Vincent Hanquez
Browse files

add a default value to data for the foreach function

parent 92a4fea8
No related branches found
No related tags found
No related merge requests found
......@@ -202,7 +202,7 @@ class Config:
'message_sent': [ True, 'sounds/sent.wav' ],
}
def foreach(self, cb, data):
def foreach(self, cb, data = None):
for opt in self.__options:
cb(data, opt, None, self.__options[opt])
for opt in self.__options_per_key:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment