Modify ↓
#3969 closed defect (fixed)
TypeError: an integer is required
Reported by: | goldent | Owned by: | Christian Boos |
---|---|---|---|
Priority: | normal | Milestone: | 0.10.1 |
Component: | version control/browser | Version: | devel |
Severity: | trivial | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
How to Reproduce
While doing a GET operation on /changeset/102
, Trac issued an internal error.
System Information
Python | 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)]
|
Subversion | 1.4.0
|
SQLite | 3.3.6
|
pysqlite | 2.3.2
|
Python Traceback
Traceback (most recent call last): File "c:\python24\Lib\site-packages\trac\web\main.py", line 377, in dispatch_request dispatcher.dispatch(req) File "c:\python24\Lib\site-packages\trac\web\main.py", line 237, in dispatch resp = chosen_handler.process_request(req) File "c:\python24\Lib\site-packages\trac\versioncontrol\web_ui\changeset.py", line 249, in process_request self._render_html(req, repos, chgset, restricted, message, data) File "c:\python24\Lib\site-packages\trac\versioncontrol\web_ui\changeset.py", line 467, in _render_html diffs = _content_changes(old_node, new_node) File "c:\python24\Lib\site-packages\trac\versioncontrol\web_ui\changeset.py", line 435, in _content_changes ignore_space_changes=ignore_space) File "c:\python24\Lib\site-packages\trac\versioncontrol\diff.py", line 176, in diff_blocks line = line.expandtabs(tabwidth) TypeError: an integer is required
Attachments (0)
Change History (6)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
Milestone: | → 0.11 |
---|---|
Severity: | normal → minor |
Looks like you have neither of those options set in your TracIni:
[diff] tab_width = ... [mimeviewer] tab_width = ...
but we should probably default to '8' in this case.
follow-up: 4 comment:3 by , 18 years ago
Resolution: | → fixed |
---|---|
Severity: | minor → trivial |
Status: | new → closed |
Fixed by r3998.
follow-up: 5 comment:4 by , 18 years ago
comment:5 by , 18 years ago
Replying to anonymous:
… In fact my trac.ini had a tab_width = <blank> entry, which I've now set in any case.
was that a newly created env, or because you set it like that by mistake?
Note:
See TracTickets
for help on using tickets.
I'm using the current Subversion HEAD (r3996) and this error apparently happens on any attempt to access a /changeset URL