Skip to content

Commit 22ea663

Browse files
lambyp1otr
authored andcommitted
Fix parsing pg_ctl output in some locales
for example: "pg_ctl : le serveur est en cours d'exécution (PID : 9286)". see also: https://bugs.debian.org/843967
1 parent 38ad33b commit 22ea663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asyncpg/cluster.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def get_status(self):
109109
elif process.returncode == 3:
110110
return 'stopped'
111111
elif process.returncode == 0:
112-
r = re.match(r'.*PID:\s+(\d+).*', stdout.decode())
112+
r = re.match(r'.*PID\s?:\s+(\d+).*', stdout.decode())
113113
if not r:
114114
raise ClusterError(
115115
'could not parse pg_ctl status output: {}'.format(

0 commit comments

Comments
 (0)