Commit 4783dc9b authored by Serge S. Koval's avatar Serge S. Koval

Merge branch 'master' of github.com:/mrjoes/flask-admin

parents 12995505 ecaa5d2c
...@@ -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