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