Skip to content

Commit 0ba8a3a

Browse files
committed
Fix cluster exception message when pg_config is not executable
1 parent 64be215 commit 0ba8a3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

asyncpg/cluster.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,8 @@ def _find_pg_config(self, pg_config_path):
552552
raise ClusterError('could not find pg_config executable')
553553

554554
if not os.path.isfile(pg_config_path):
555-
raise ClusterError('{!r} is not an executable')
555+
raise ClusterError('{!r} is not an executable'.format(
556+
pg_config_path))
556557

557558
return pg_config_path
558559

0 commit comments

Comments
 (0)