Remove bad decode() call

This commit is contained in:
Sage Vaillancourt 2022-10-03 15:10:28 -04:00
parent b695231196
commit b4212df850
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ def git_update() -> None:
def status_page() -> Response: def status_page() -> Response:
status_message = f"Currently running on '{os.environ.get('UNDERCOVER_SERVER_NAME')}' server" status_message = f"Currently running on '{os.environ.get('UNDERCOVER_SERVER_NAME')}' server"
git_commands = 'git log -1 --pretty=%B; git rev-parse --short HEAD' git_commands = 'git log -1 --pretty=%B; git rev-parse --short HEAD'
current_git_hash = subprocess.check_output([git_commands], shell=True, universal_newlines=True).decode('utf-8') current_git_hash = subprocess.check_output([git_commands], shell=True, universal_newlines=True)
return make_response(render_template('error.jinja2', status=200, error_text=status_message, extra_text=current_git_hash), 200) return make_response(render_template('error.jinja2', status=200, error_text=status_message, extra_text=current_git_hash), 200)