aetherscale

[unmaintained] code for a cloud provider tutorial
Log | Files | Refs | README | LICENSE

commit 7de97613ce19dcaeed8c01fd09bb333397c9e393
parent 154c08bb218d616b08b38d2520d2008e86ccffe9
Author: Stefan Koch <programming@stefan-koch.name>
Date:   Tue, 15 Dec 2020 22:35:31 +0100

add keyboard interrupt handler

Diffstat:
Maetherscale/computing.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/aetherscale/computing.py b/aetherscale/computing.py @@ -385,4 +385,7 @@ def run(): logging.error('Failed to start VDE networking.') sys.exit(1) - channel.start_consuming() + try: + channel.start_consuming() + except KeyboardInterrupt: + print('Keyboard interrupt, stopping service')