Show More
@@ -29,7 +29,7 b' from pyramid.httpexceptions import HTTPN' | |||||
29 | from rhodecode.lib import rc_cache |
|
29 | from rhodecode.lib import rc_cache | |
30 | from rhodecode.lib.middleware import simplevcs |
|
30 | from rhodecode.lib.middleware import simplevcs | |
31 | from rhodecode.lib.utils import is_valid_repo |
|
31 | from rhodecode.lib.utils import is_valid_repo | |
32 | from rhodecode.lib.utils2 import str2bool, safe_int |
|
32 | from rhodecode.lib.utils2 import str2bool, safe_int, safe_str | |
33 | from rhodecode.lib.ext_json import json |
|
33 | from rhodecode.lib.ext_json import json | |
34 | from rhodecode.lib.hooks_daemon import store_txn_id_data |
|
34 | from rhodecode.lib.hooks_daemon import store_txn_id_data | |
35 |
|
35 | |||
@@ -98,7 +98,8 b' class SimpleSvnApp(object):' | |||||
98 | raise |
|
98 | raise | |
99 |
|
99 | |||
100 | if response.status_code not in [200, 401]: |
|
100 | if response.status_code not in [200, 401]: | |
101 | text = '\n{}'.format(response.text) if response.text else '' |
|
101 | from rhodecode.lib.utils2 import safe_str | |
|
102 | text = '\n{}'.format(safe_str(response.text)) if response.text else '' | |||
102 | if response.status_code >= 500: |
|
103 | if response.status_code >= 500: | |
103 | log.error('Got SVN response:%s with text:`%s`', response, text) |
|
104 | log.error('Got SVN response:%s with text:`%s`', response, text) | |
104 | else: |
|
105 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now