upgrade: Fix str/bytes type error.

This commit is contained in:
Greg Price 2017-07-31 13:26:38 -07:00 committed by Tim Abbott
parent 90c5b53da3
commit ddb85c9cb1
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ if not args.skip_migrations:
migrations_output = subprocess.check_output(["./manage.py", "showmigrations"],
preexec_fn=su_to_zulip)
for ln in migrations_output.split(b"\n"):
if ln.strip().startswith("[ ]"):
if ln.strip().startswith(b"[ ]"):
migrations_needed = True
# Now we start shutting down services; we start with