AttributeError: 'int' object has no attribute 'isdigit'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trac-Bzr |
New
|
Undecided
|
Unassigned |
Bug Description
==== How to Reproduce ====
While doing a GET operation on `/browser`, Trac issued an internal error.
''(please provide additional details here)''
Request parameters:
{{{
{'path': '/'}
}}}
User Agent was: `Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009011912 Firefox/3.0.6`
==== System Information ====
|| '''Trac''' || `0.11.2.1` ||
|| '''Python''' || `2.5.2 (r252:60911, Mar 1 2008, 13:52:45) ` [[br]] `[GCC 4.2.3]` ||
|| '''setuptools''' || `0.6c9` ||
|| '''SQLite''' || `3.3.17` ||
|| '''pysqlite''' || `2.4.1` ||
|| '''Genshi''' || `0.5.1` ||
|| '''mod_python''' || `3.3.1` ||
|| '''Pygments''' || `1.0` ||
|| '''jQuery:''' || `1.2.6` ||
==== Python Traceback ====
{{{
Traceback (most recent call last):
File "/usr/lib/
dispatcher.
File "/usr/lib/
resp = chosen_
File "/usr/lib/
node = get_existing_
File "/usr/lib/
return repos.get_
File "build/
revbranch, revid = self._parse_
File "build/
if rev.isdigit():
AttributeError: 'int' object has no attribute 'isdigit'
}}}
line 217
if rev.isdigit() , that is the error rev is int value and not has that atribute, i changed to
if type(rev)==int: solve the problem