CC-5709: Even more slightly better exception handling
This commit is contained in:
parent
549b8b35c8
commit
2a172afe3e
|
@ -74,6 +74,14 @@ class MessageListener:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def msg_received_callback(channel, method_frame, header_frame, body):
|
def msg_received_callback(channel, method_frame, header_frame, body):
|
||||||
logging.info(" - Received '%s' on routing_key '%s'" % (body, method_frame.routing_key))
|
logging.info(" - Received '%s' on routing_key '%s'" % (body, method_frame.routing_key))
|
||||||
|
|
||||||
|
#Declare all variables here so they exist in the exception handlers below, no matter what.
|
||||||
|
audio_file_path = ""
|
||||||
|
#final_file_path = ""
|
||||||
|
import_directory = ""
|
||||||
|
original_filename = ""
|
||||||
|
callback_url = ""
|
||||||
|
api_key = ""
|
||||||
|
|
||||||
# Spin up a worker process. We use the multiprocessing module and multiprocessing.Queue
|
# Spin up a worker process. We use the multiprocessing module and multiprocessing.Queue
|
||||||
# to pass objects between the processes so that if the analyzer process crashes, it does not
|
# to pass objects between the processes so that if the analyzer process crashes, it does not
|
||||||
|
|
Loading…
Reference in New Issue