Skip to content

Commit 90be555

Browse files
Fix pg_restore logs to distinguish UI sync issues from actual failures. #9074
1 parent 402ddaf commit 90be555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/pgadmin/misc/bgprocess/processes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ def status(self, out=0, err=0):
630630
}
631631

632632
# Get the error message based on exit code.
633-
if err_completed and self.ecode != 0:
633+
if err_completed and self.ecode != 0 and self.ecode is not None:
634634
err_msg = get_error_msg(self.cmd, self.ecode)
635635
# This should be the last line as added 'Z' for sorting.
636636
stderr.append(['Z', err_msg])

0 commit comments

Comments
 (0)