Commit ecaa5d2c authored by Serge S. Koval's avatar Serge S. Koval

Update fileadmin.py

Fixed #273
parent d1f58a58
...@@ -682,7 +682,7 @@ class FileAdmin(BaseView, ActionsMixin): ...@@ -682,7 +682,7 @@ class FileAdmin(BaseView, ActionsMixin):
error = True error = True
else: else:
try: try:
content.decode('utf8') content = content.decode('utf8')
except UnicodeDecodeError: except UnicodeDecodeError:
flash(gettext("Cannot edit %(name)s.", name=path), 'error') flash(gettext("Cannot edit %(name)s.", name=path), 'error')
error = True error = True
......
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