Skip to content

Commit 7411d91

Browse files
authored
PBCKP-3336 fix suppress error of invalid PGPROBACKUPBIN (#14)
* PBCKP-3336 fix suppress error of invalid PGPROBACKUPBIN * Bump version to 0.8.1
1 parent 59f4e3c commit 7411d91

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

pg_probackup2/init_helpers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ def __init__(self):
9696
if shutil.which(test_env["PGPROBACKUPBIN"]):
9797
self.probackup_path = test_env["PGPROBACKUPBIN"]
9898
else:
99-
if self.verbose:
100-
print('PGPROBACKUPBIN is not an executable file')
99+
raise Exception(
100+
'pg_probackup binary not found at PGPROBACKUPBIN={0}'.format(
101+
test_env["PGPROBACKUPBIN"]))
101102

102103
if not self.probackup_path:
103104
probackup_path_tmp = os.path.join(

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from distutils.core import setup
55

66
setup(
7-
version='0.8.0',
7+
version='0.8.1',
88
name='testgres_pg_probackup2',
99
packages=['pg_probackup2', 'pg_probackup2.storage'],
1010
description='Plugin for testgres that manages pg_probackup2',

0 commit comments

Comments
 (0)