From 53e272ab2236590ce1ab2367cf2c7df1a475b53b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norbert=20W=C3=B3jtowicz?= Date: Mon, 28 Oct 2019 16:55:31 +0100 Subject: [PATCH] Fix type-errors in dokku-installer.py --- contrib/dokku-installer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/dokku-installer.py b/contrib/dokku-installer.py index 8d05ea767..66a370d24 100755 --- a/contrib/dokku-installer.py +++ b/contrib/dokku-installer.py @@ -207,11 +207,11 @@ class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): max_num = 0 exists = False for line in proc.stdout: - m = pattern.search(line) + m = pattern.search(bytes_to_string(line)) if m: # User of the form `user` or `user#` exists exists = True - max_num = max(max_num, m.group(1)) + max_num = max(max_num, int(m.group(1))) if exists: return max_num else: