Fix type-errors in dokku-installer.py
This commit is contained in:
1 parent
6decb6f19a
commit
53e272ab22
1 file changed
+2
-2
@@ -207,11 +207,11 @@ class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
|||||||
max_num = 0
|
max_num = 0
|
||||||
exists = False
|
exists = False
|
||||||
for line in proc.stdout:
|
for line in proc.stdout:
|
||||||
m = pattern.search(line)
|
m = pattern.search(bytes_to_string(line))
|
||||||
if m:
|
if m:
|
||||||
# User of the form `user` or `user#` exists
|
# User of the form `user` or `user#` exists
|
||||||
exists = True
|
exists = True
|
||||||
max_num = max(max_num, m.group(1))
|
max_num = max(max_num, int(m.group(1)))
|
||||||
if exists:
|
if exists:
|
||||||
return max_num
|
return max_num
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in new issue
Block a user