Skip to content

Commit

Permalink
fix the ONLY py3 unicode error. <3 flask
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jan 5, 2015
1 parent 97b1c3d commit 44950ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion COMET/__init__.py
Expand Up @@ -139,7 +139,7 @@ def find_user_by_name(username):
def read_users():
global USERS
USERS = {}
with io.open(json_path, 'rb') as fh:
with io.open(json_path, 'r', encoding='utf-8') as fh:
udict = json.load(fh)
for uid, data in udict.items():
uid = int(uid)
Expand Down Expand Up @@ -472,6 +472,7 @@ def main():
#if options and options.get('browser'):
#webbrowser.open('http://localhost:{0}'.format(port))

print("COMET CMS running @ http://localhost:8001/")
app.run('localhost', port, debug=True)

if __name__ == '__main__':
Expand Down

0 comments on commit 44950ee

Please sign in to comment.