Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in csv logger in reporting empty URLs #58

Closed
wummel opened this issue Dec 21, 2012 · 1 comment
Closed

Bug in csv logger in reporting empty URLs #58

wummel opened this issue Dec 21, 2012 · 1 comment

Comments

@wummel
Copy link
Owner

wummel commented Dec 21, 2012

Converted from SourceForge issue 1019877, submitted by edentz

I encountered this bug when I have configured Linkchecker to
output both an HTML and CSV report. Here is the output:

URL
Parent URL http://www.lisc.org/resources/2002/07/
partnerships_820.shtml, line 409, col 1
Result Error: URL is null or empty

********** Oops, I did it again. *************

You have found an internal error in LinkChecker. Please write a bug
report
at http://sourceforge.net/tracker/?
func=add&group_id=1913&atid=101913
or send mail to [email protected] and include the
following information:

  1. The URL or file you are testing
  2. Your commandline arguments and/or configuration.
  3. The system information below.

If you disclose some information because its too private to you
thats ok.
I will try to help you nontheless (but you have to give me
something
I can work with ;).

exceptions.AttributeError 'NoneType' object has no attribute 'find'
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/linkcheck/UrlData.py", line
303, in check
self._check()
File "/usr/lib/python2.3/site-packages/linkcheck/UrlData.py", line
369, in _check
self.parseUrl()
File "/usr/lib/python2.3/site-packages/linkcheck/HttpUrlData.py",
line 426, in parseUrl
self.parse_html()
File "/usr/lib/python2.3/site-packages/linkcheck/UrlData.py", line
623, in parse_html
line=line, column=column, name=name))
File "/usr/lib/python2.3/site-packages/linkcheck/Config.py", line
247, in appendUrl
if not urlData.checkSyntax():
File "/usr/lib/python2.3/site-packages/linkcheck/UrlData.py", line
387, in checkSyntax
self.logMe()
File "/usr/lib/python2.3/site-packages/linkcheck/UrlData.py", line
298, in logMe
self.config.log_newUrl(self)
File "/usr/lib/python2.3/site-packages/linkcheck/Config.py", line
357, in log_newUrl
log.newUrl(url)
File "/usr/lib/python2.3/site-packages/linkcheck/log/
CSVLogger.py", line 68, in newUrl
row = [urlData.urlName, urlData.recursionLevel,
File "/usr/lib/python2.3/site-packages/linkcheck/url.py", line 117,
in url_quote
urlparts = list(urlparse.urlsplit(url))
File "/var/tmp/python2.3-2.3.3-root/usr/lib/python2.3/
urlparse.py", line 79, in urlsplit
i = url.find(':')
AttributeError: 'NoneType' object has no attribute 'find'
System info:
LinkChecker 1.12.3
Python 2.3.3 (#1, Feb 25 2004, 14:32:21)
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-113)] on linux2

******** LinkChecker internal error, bailing out ********

@wummel
Copy link
Owner Author

wummel commented Dec 21, 2012

Submitted by calvin

Logged In: YES
user_id=9205

This bug is already fixed in CVS and will be in the next
release. Thanks for the report.

@wummel wummel closed this as completed Dec 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant