Skip to content

Commit aa562ce

Browse files
committed
Bugfix:
1. When st 404.html not display user info 2. Display error message is '???'
1 parent 3623fe5 commit aa562ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vilya/views/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020

2121
def _q_exception_handler(request, exception):
2222
if isinstance(exception, TraversalError):
23-
error = exception
23+
error = exception.title
24+
current_user = request.user
2425
return st('/errors/404.html', **locals())
2526
if isinstance(exception, AccessError):
26-
error = exception
27+
error = exception.title
2728
return st('/errors/401.html', **locals())
2829
else:
2930
raise exception

0 commit comments

Comments
 (0)