From 3c40861c70eb57b76cf96ff8cac2e063ea53c164 Mon Sep 17 00:00:00 2001 From: Florian Rupp Date: Fri, 21 Apr 2023 18:32:48 +0200 Subject: [PATCH] Fixed except --- prometheus-ssh-exporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheus-ssh-exporter.py b/prometheus-ssh-exporter.py index 403a4f5..d943a15 100644 --- a/prometheus-ssh-exporter.py +++ b/prometheus-ssh-exporter.py @@ -160,7 +160,7 @@ if __name__ == '__main__': handle_sessions_changed() time.sleep(FETCH_INTERVAL) - except KeyboardInterrupt: - print("Manual interrupt...") + except: + print("Terminating...") observer.stop() observer.join() \ No newline at end of file