Skip to content

Commit 5ca0b07

Browse files
author
Elvis Pranskevichus
authored
Merge pull request #44 from p1otr/master
Fix parsing pg_ctl output in some locales
2 parents 38ad33b + 22ea663 commit 5ca0b07

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)