#6833 closed task (fixed)
AttributeError: 'NoneType' object has no attribute 'startswith'
Reported by: | Owned by: | Robert Verspuy | |
---|---|---|---|
Priority: | high | Component: | PhpdocPlugin |
Severity: | critical | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
html_output = Option('phpdoc', 'html_output', None, at line 50 should be: html_output = Option('phpdoc', 'html_output', , instead
If [phpdoc] html_output = isn't set then the plugin will fail with the error message "AttributeError: 'NoneType' object has no attribute 'startswith'" because of that process_request on line 159 tries to access a String method on a NoneType.
Attachments (0)
Change History (10)
comment:1 Changed 15 years ago by
Priority: | normal → high |
---|---|
Severity: | normal → critical |
comment:2 Changed 15 years ago by
Yes, my "Should be" patch works flawless. I've been using this egg stable since I've posted this patch and everything works.
If maybe the author of this plugin could look over here could perhaps commit an updated version of the code.
comment:3 follow-up: 4 Changed 15 years ago by
Sure exarv should read this thread !
Meanwhile it happens, may I ask you how you did patch the original egg or if you could attach your patched egg ? I did find litterature on how to cook eggs from source, but can't find anything for "the other way round"...
Tack bra!
comment:4 Changed 15 years ago by
Type: | defect → task |
---|
Replying to mathdesc@scourge.biz:
Sure exarv should read this thread !
Meanwhile it happens, may I ask you how you did patch the original egg or if you could attach your patched egg ? I did find litterature on how to cook eggs from source, but can't find anything for "the other way round"...
Tack bra!
Self-reply :) 0.svn co http://trac-hacks.org/svn/phpdocplugin/0.11/ 1.edit & correct phpdoctrac.py 2.python setup.py bdist_egg 3.copy where to...
Testing in production tomorrow.
comment:5 Changed 15 years ago by
Yes, I'm reading it.
But very busy at work at the last weeks, euh. months.
I'l try to apply the patch tomorrow and post the new version into svn
comment:6 Changed 15 years ago by
Status: | new → assigned |
---|
comment:9 follow-up: 10 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Requested change implemented
Replying to PontusCarlsson@live.se:
Is the "should be" statement above a valid resolution to this ? My trac.log says :
As yours I guess and indeed that's line 159. I am not familiar with python's egg : did you try out to patch the line and make it work ?
If not and as I'm not able to fix this : is there a way to deactivate a piece of the functionality to make PHPDoc work ?
Mathdesc