18 | | |
19 | | The following patch seems to fix the issue, but I am unsure that it is the correct solution. |
20 | | {{{#!diff |
21 | | diff --git a/trac/perm.py b/trac/perm.py |
22 | | index 4b514e4..f0f9475 100644 |
23 | | --- a/trac/perm.py |
24 | | +++ b/trac/perm.py |
25 | | @@ -59,7 +59,7 @@ class PermissionError(StandardError): |
26 | | 'operation. You don\'t have the required ' |
27 | | 'permissions.', perm=self.action) |
28 | | elif self.msg: |
29 | | - return self.msg |
30 | | + return unicode(self.msg) |
31 | | else: |
32 | | return _('Insufficient privileges to perform this operation.') |
33 | | |
34 | | }}} |