Код: Выделить всё
logger.info("Checkpoint 1")
try:
queue.push(item) # This is where the exception could occur
logger.info("Checkpoint 2")
except queues.errors.NotAllowedError as exc:
logger.info("Error 1")
raise exc
except Exception as e:
logger.info("Error 2")
finally:
logger.info("Checkpoint 3")
Код: Выделить всё
Checkpoint 1
Checkpoint 2
Checkpoint 3
Код: Выделить всё
Checkpoint 1
Error 2
Checkpoint 3
Код: Выделить всё
Checkpoint 1
Checkpoint 3
Подробнее здесь: https://stackoverflow.com/questions/786 ... not-the-lo