Skip to content

Commit b9e0ef9

Browse files
committed
Address feedback
1 parent d3acb70 commit b9e0ef9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

asyncpg/cluster.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def get_status(self) -> str:
126126
return self._test_connection(timeout=0)
127127
else:
128128
raise ClusterError(
129-
'pg_ctl status exited with status {:d}: {}'.format( # type: ignore[str-bytes-safe] # noqa: E501
129+
'pg_ctl status exited with status {:d}: {!r}'.format(
130130
process.returncode, stderr))
131131

132132
async def connect(self,
@@ -544,8 +544,9 @@ def _run_pg_config(self, pg_config_path: str) -> typing.Dict[str, str]:
544544
stdout, stderr = process.stdout, process.stderr
545545

546546
if process.returncode != 0:
547-
raise ClusterError('pg_config exited with status {:d}: {}'.format( # type: ignore[str-bytes-safe] # noqa: E501
548-
process.returncode, stderr))
547+
raise ClusterError(
548+
'pg_config exited with status {:d}: {!r}'.format(
549+
process.returncode, stderr))
549550
else:
550551
config = {}
551552

@@ -601,7 +602,7 @@ def _get_pg_version(self) -> 'types.ServerVersion':
601602

602603
if process.returncode != 0:
603604
raise ClusterError(
604-
'postgres --version exited with status {:d}: {}'.format( # type: ignore[str-bytes-safe] # noqa: E501
605+
'postgres --version exited with status {:d}: {!r}'.format(
605606
process.returncode, stderr))
606607

607608
version_string = stdout.decode('utf-8').strip(' \n')

0 commit comments

Comments
 (0)