Skip to content

Commit

Permalink
more error recovery for bad broker credentials #784
Browse files Browse the repository at this point in the history
  • Loading branch information
petersilva committed Oct 19, 2023
1 parent 2a94d05 commit faf6b42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sarracenia/flowcb/gather/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ def __init__(self, options) -> None:

super().__init__(options,logger)

self.od = sarracenia.moth.default_options
self.od.update(self.o.dictify())

if hasattr(self.o, 'broker') and self.o.broker:
self.od = sarracenia.moth.default_options
self.od.update(self.o.dictify())
self.consumer = sarracenia.moth.Moth.subFactory(self.od)
else:
logger.critical('missing required broker specification')
Expand Down

0 comments on commit faf6b42

Please sign in to comment.