def increment_the_variable(self): try: self.stompClient = getNewStompConnection('', ConnectionListener()) except: log.error(''' Cannot connect to Stomp; make sure you're running a local ActiveMQ instance. You can start a docker container with ActiveMQ using the following : `docker run --name='activemq' -d -p 8161:8161 -p 61616:61616 -p 61613:61613 rmohr/activemq:5.10.0` ''') sys.exit(1)