Skip to content

Commit a9637c9

Browse files
committed
Raise InvalidOperationError
1 parent 96ce658 commit a9637c9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from six import iteritems
1616

17-
from .exceptions import ExecUtilException
17+
from .exceptions import ExecUtilException, InvalidOperationException
1818
from .config import testgres_config as tconf
1919
from .raise_error import RaiseError
2020
from .enums import NodeStatus
@@ -266,7 +266,7 @@ def cache_pg_config_data(cmd):
266266
try:
267267
pg_config_data = cache_pg_config_data("pg_config")
268268
except Exception:
269-
raise Exception(
269+
raise InvalidOperationException(
270270
"Failed to determine how to start pg_config. Specify the path to pg_config in PG_CONFIG or the path to the Postgres directory containing it in PG_BIN, or put it into the system PATH.")
271271
return pg_config_data
272272

0 commit comments

Comments
 (0)