[Python-bugs-list] [ python-Bugs-592441 ] Webchecker error on http://www.naleo.org

noreply@sourceforge.net noreply@sourceforge.net
Thu, 08 Aug 2002 15:06:30 -0700


Bugs item #592441, was opened at 2002-08-08 00:40
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=592441&group_id=5470

Category: Demos and Tools
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Carlos Conti (mcsolrac)
Assigned to: Nobody/Anonymous (nobody)
Summary: Webchecker error on http://www.naleo.org

Initial Comment:
Webchecker version 1.25.6.1 on Windows 2000 
Professional. 

Run webchecker with this argument 
http://www.naleo.org/WSJArticle002.htm 
Webchecker will return this traceback: 

Traceback (most recent call last):
  File "C:\Python22\Tools\webchecker\webchecker.py", 
line 858, in ?
    main()
  File "C:\Python22\Tools\webchecker\webchecker.py", 
line 222, in main
    c.run()
  File "C:\Python22\Tools\webchecker\webchecker.py", 
line 349, in run
    self.dopage(url)
  File "C:\Python22\Tools\webchecker\webchecker.py", 
line 403, in dopage
    page = self.getpage(url_pair)
  File "C:\Python22\Tools\webchecker\webchecker.py", 
line 507, in getpage
    return Page(text, url, maxpage=self.maxpage, 
checker=self)
  File "C:\Python22\Tools\webchecker\webchecker.py", 
line 671, in __init__
    self.parser.feed(self.text)
  File "C:\Python22\lib\sgmllib.py", line 95, in feed
    self.goahead(0)
  File "C:\Python22\lib\sgmllib.py", line 161, in goahead
    k = self.parse_declaration(i)
  File "C:\Python22\lib\markupbase.py", line 66, in 
parse_declaration
    decltype, j = self._scan_name(j, i)
  File "C:\Python22\lib\markupbase.py", line 313, in 
_scan_name
    self.error("expected name token")
  File "C:\Python22\lib\sgmllib.py", line 102, in error
    raise SGMLParseError(message)
sgmllib.SGMLParseError: expected name token

I believe this is because of the xml in the source code 
(see WSJArticle002_source.txt attached to this bug 
report).

Even if the code in this page is poorly formatted, 
webchecker should be able continue checking other 
links in this domain (rather than stopping). For example 
webchecker could report “unable to check 
http://www.naleo.org/WSJArticle002.htm” and return 
traceback like the above, and then continue with the rest 
of the domain. 


----------------------------------------------------------------------

>Comment By: Carlos Conti (mcsolrac)
Date: 2002-08-08 18:06

Message:
Logged In: YES 
user_id=591396

I'd love to submit a patch, but I am a newbie to both Python 
and programming. I apologize if this space is only intended 
for programmers; I am a QA engineer just getting acquainted 
to the wonderful world of Python. 

----------------------------------------------------------------------

Comment By: Jeremy Hylton (jhylton)
Date: 2002-08-08 15:20

Message:
Logged In: YES 
user_id=31392

I've seen a variety of parsing problems kill webchecker.  I
agree that these exceptions should be caught somewhere so
that they are not fatal.  Care to submit a patch?


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=592441&group_id=5470