Browse Source

Fix makeconfig command. #278

sh4nks 8 years ago
parent
commit
3861dab5b8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      flaskbb/cli/utils.py

+ 1 - 1
flaskbb/cli/utils.py

@@ -170,7 +170,7 @@ def write_config(config, config_template, config_path):
     :param config_template: The config (jinja2-)template.
     :param config_template: The config (jinja2-)template.
     :param config_path: The place to write the new config file.
     :param config_path: The place to write the new config file.
     """
     """
-    with open(config_path, 'w') as cfg_file:
+    with open(config_path, 'wb') as cfg_file:
         cfg_file.write(
         cfg_file.write(
             config_template.render(**config).encode("utf-8")
             config_template.render(**config).encode("utf-8")
         )
         )