-fix exception when rabbitmq wasnt started before media-monitor
This commit is contained in:
parent
fcb7ca2858
commit
7e1dbf8085
|
@ -28,7 +28,7 @@ class AirtimeNotifier(Notifier):
|
||||||
self.watched_folders = []
|
self.watched_folders = []
|
||||||
|
|
||||||
while not self.init_rabbit_mq():
|
while not self.init_rabbit_mq():
|
||||||
logger.error("Error connecting to RabbitMQ Server. Trying again in few seconds")
|
self.logger.error("Error connecting to RabbitMQ Server. Trying again in few seconds")
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
|
|
||||||
def init_rabbit_mq(self):
|
def init_rabbit_mq(self):
|
||||||
|
|
Loading…
Reference in New Issue