mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
try except for schedule manager
This commit is contained in:
parent
374f400f30
commit
956cede593
1 changed files with 8 additions and 5 deletions
|
@ -79,10 +79,13 @@ class ScheduleManager:
|
||||||
|
|
||||||
def check_for_queued_messages(self):
|
def check_for_queued_messages(self):
|
||||||
if not self.state_manager.getARQ():
|
if not self.state_manager.getARQ():
|
||||||
if DatabaseManagerMessages(self.event_manager).get_first_queued_message():
|
try:
|
||||||
params = DatabaseManagerMessages(self.event_manager).get_first_queued_message()
|
if first_queued_message := DatabaseManagerMessages(
|
||||||
command = command_message_send.SendMessageCommand(self.config_manager.read(), self.state_manager, self.event_manager, params)
|
self.event_manager
|
||||||
|
).get_first_queued_message():
|
||||||
|
command = command_message_send.SendMessageCommand(self.config_manager.read(), self.state_manager, self.event_manager, first_queued_message)
|
||||||
command.transmit(self.modem)
|
command.transmit(self.modem)
|
||||||
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue