New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't view diffs on LMDE #60

Closed
aszepieniec opened this Issue Jan 25, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@aszepieniec

aszepieniec commented Jan 25, 2015

Trying to view the diffs from a page's history causes a server error:

Exception Type: UnicodeDecodeError
Exception Value: 'ascii' codec can't decode byte 0xa0 in position 0: ordinal not in range(128)
Exception Location: /usr/local/lib/python2.7/dist-packages/waliki/git/views.py in diff, line 56
Traceback:

File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  114.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/waliki/acl.py" in _wrapped_view
  63.                 return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/waliki/git/views.py" in diff
  56.     old_content = Git().version(page, old).replace('\t', '    ').replace(' ', '\xA0')

I am running python 2.7.

@aszepieniec

This comment has been minimized.

aszepieniec commented Jan 25, 2015

Nevermind. After running

python setup.py build

and

python setup.py install

the error disappears. I guess I should have run those commands from the start.

@mgaitan mgaitan closed this Feb 28, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment