From e0dbf486d1956d904486a644bf3e25243582382f Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Sun, 23 Jun 2019 01:40:51 +0900 Subject: [PATCH] fix output --- nohang | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nohang b/nohang index e9f2c4f..1af5b1d 100755 --- a/nohang +++ b/nohang @@ -1807,14 +1807,12 @@ def implement_corrective_action( response_time = time() - time0 send_result = 'no such process; response time: {} ms'.format( round(response_time * 1000)) - key = 'FileNotFoundError (the victim died in the se' \ - 'arch process): ' + key = 'The victim died in the search process: FileNotFoundError' except ProcessLookupError: response_time = time() - time0 send_result = 'no such process; response time: {} ms'.format( round(response_time * 1000)) - key = 'ProcessLookupError (the victim died in the se' \ - 'arch process): ' + key = 'The victim died in the search process: ProcessLookupError' try: log(preventing_oom_message)