From 7abc2b1a2f73edc29828a31d1fba897651a1d949 Mon Sep 17 00:00:00 2001 From: vshepard Date: Sat, 9 May 2026 20:43:13 +0200 Subject: [PATCH 1/2] PBCKP-3336 fix suppress error of invalid PGPROBACKUPBIN --- pg_probackup2/init_helpers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pg_probackup2/init_helpers.py b/pg_probackup2/init_helpers.py index e126bca..f6bd20c 100644 --- a/pg_probackup2/init_helpers.py +++ b/pg_probackup2/init_helpers.py @@ -96,8 +96,9 @@ def __init__(self): if shutil.which(test_env["PGPROBACKUPBIN"]): self.probackup_path = test_env["PGPROBACKUPBIN"] else: - if self.verbose: - print('PGPROBACKUPBIN is not an executable file') + raise Exception( + 'pg_probackup binary not found at PGPROBACKUPBIN={0}'.format( + test_env["PGPROBACKUPBIN"])) if not self.probackup_path: probackup_path_tmp = os.path.join( From c50e9a4bf6f9102f54c9e04911203774a4fbc781 Mon Sep 17 00:00:00 2001 From: vshepard Date: Sat, 9 May 2026 20:45:28 +0200 Subject: [PATCH 2/2] Up version 0.7.1 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 330dfc2..6c82847 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from distutils.core import setup setup( - version='0.7.0', + version='0.7.1', name='testgres_pg_probackup2', packages=['pg_probackup2', 'pg_probackup2.storage'], description='Plugin for testgres that manages pg_probackup2',