Skip to content

Commit

Permalink
fix/scheduled_event message.context
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Oct 19, 2023
1 parent 8c309e6 commit 8df2211
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ovos_utils/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,9 @@ def on_error(e):
'data': data}

message = self._get_source_message()
self.bus.emit(message.reply('mycroft.scheduler.schedule_event',
data=event_data, context=context))
context = context or message.context
self.bus.emit(Message('mycroft.scheduler.schedule_event',
data=event_data, context=context))

def schedule_event(self, handler: Callable[[Optional[Message]], None],
when: Union[datetime, int, float],
Expand Down

0 comments on commit 8df2211

Please sign in to comment.