make sure exit code is set to not None

This commit is contained in:
Jakub Trllo 2022-06-21 14:35:06 +02:00
parent 3178b4bfb9
commit 783f07e616

View file

@ -707,6 +707,9 @@ class BaseCommunicator:
if exit_code is not None:
self.exit_code = exit_code
if self.exit_code is None:
self.exit_code = 0
def stop(self):
"""Stop communication and currently running python process."""
log.info("Stopping communication")