UltrosBot / Ultros-contrib

Contributed plugins, protocols and extensions for Ultros
8 stars 5 forks source link

[Web] Config editor errors for non-ascii configs #27

Open rakiru opened 9 years ago

rakiru commented 9 years ago
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/cyclone/web.py", line 1067, in _execute
    callbackArgs=(args, kwargs))
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 295, in addCallbacks
    self._runCallbacks()
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 577, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/cyclone/web.py", line 1102, in _execute_handler
    d = self._deferred_handler(function, *args, **kwargs)
--- <exception caught here> ---
  File "/usr/local/lib/python2.7/dist-packages/cyclone/web.py", line 1073, in _deferred_handler
    result = function(*args, **kwargs)
  File "/nope/Ultros/plugins/web/routes/admin/file.py", line 91, in get
    success=False
  File "/nope/Ultros/plugins/web/request_handler.py", line 98, in render
    self.finish(self.render_string(template_name, **kwargs))
  File "/nope/Ultros/plugins/web/request_handler.py", line 121, in render_string
    return template.render(**namespace)
  File "/usr/lib/python2.7/dist-packages/mako/template.py", line 397, in render
    return runtime._render(self, self.callable_, args, data)
  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 764, in _render
    **_kwargs_for_callable(callable_, data))
  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 796, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 822, in _exec_template
    callable_(context, *args, **kwargs)
  File "admin____base_html", line 87, in render_body

  File "admin_file_html", line 69, in render_body

exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2376: ordinal not in range(128)
Jul 01 2015 - 22:31:29 |                       Web | ERROR    | [81.131.121.78] GET /admin/files/config/plugins/triggers.yml -> HTTP 500