Merge pull request #3761 from pithyless/patch-1

Fix type-errors in dokku-installer.py
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2019-10-28 17:59:46 -04:00
commit 4b8acf5c34
1 file changed
+2 -2
+2 -2
View File
@@ -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: