Commit 8d690ae9 authored by Paul Brown's avatar Paul Brown

fix python 3 compatibility issue, trim trailing space

parent 72cce208
...@@ -847,7 +847,7 @@ class FileAdmin(BaseView, ActionsMixin): ...@@ -847,7 +847,7 @@ class FileAdmin(BaseView, ActionsMixin):
helpers.flash_errors(form, message='Failed to edit file. %(error)s') helpers.flash_errors(form, message='Failed to edit file. %(error)s')
try: try:
with open(full_path, 'r') as f: with open(full_path, 'rb') as f:
content = f.read() content = f.read()
except IOError: except IOError:
flash(gettext("Error reading %(name)s.", name=path), 'error') flash(gettext("Error reading %(name)s.", name=path), 'error')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment