From 90be555ec8b964de267e6d4b1400da8e4dfb1597 Mon Sep 17 00:00:00 2001 From: Rohit Bhati Date: Wed, 14 Jan 2026 12:32:12 +0530 Subject: [PATCH] Fix pg_restore logs to distinguish UI sync issues from actual failures. #9074 --- web/pgadmin/misc/bgprocess/processes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pgadmin/misc/bgprocess/processes.py b/web/pgadmin/misc/bgprocess/processes.py index 50a66bc22..5f59ec0ab 100644 --- a/web/pgadmin/misc/bgprocess/processes.py +++ b/web/pgadmin/misc/bgprocess/processes.py @@ -630,7 +630,7 @@ class BatchProcess: } # Get the error message based on exit code. - if err_completed and self.ecode != 0: + if err_completed and self.ecode != 0 and self.ecode is not None: err_msg = get_error_msg(self.cmd, self.ecode) # This should be the last line as added 'Z' for sorting. stderr.append(['Z', err_msg])