Fix updating padatious intents after intent reload
Training is called from wait_and_train with None as message, this commit adds propper handling for this case.
@@ -58,6 +58,9 @@ class PadatiousService(FallbackSkill):
self.train_time = get_time() + self.train_delay
def train(self, message=None):
+ if message is None:
+ single_thread = False
+ else:
single_thread = message.data.get('single_thread', False)
self.finished_training_event.clear()
