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

Cache key undefined bug? #61

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

Cache key undefined bug? #61

wummel opened this issue Dec 21, 2012 · 1 comment

Comments

@wummel
Copy link
Owner

wummel commented Dec 21, 2012

Converted from SourceForge issue 1021564, submitted by edentz

Not sure how critical this bug is, but I'm seeing it on both Redhat
and Debian systems with various configuration parameters. Here is
the command line:
linkchecker --intern='!^mailto:' --recursion-level=2 -F html/
linkchecker.html --extern-strict-all www.lisc.org

And here is the error from the running program:

********** 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:

  • the URL or file you are testing
  • your commandline arguments and/or configuration.
  • the output of a debug run with option "-Dall" of the executed
    command
  • the system information below.

Disclosing some of the information above due to privacy reasons is
ok.
I will try to help you nontheless, but you have to give me
something
I can work with ;) .

exceptions.NameError global name 'key' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/linkcheck/checker/
urlbase.py", line 274, in check
self.local_check()
File "/usr/lib/python2.3/site-packages/linkcheck/checker/
urlbase.py", line 311, in local_check
self.check_connection()
File "/usr/lib/python2.3/site-packages/linkcheck/checker/
httpurl.py", line 156, in check_connection
tries, response = self.follow_redirections(response)
File "/usr/lib/python2.3/site-packages/linkcheck/checker/
httpurl.py", line 264, in follow_redirections
if self.consumer.cache.checked_redirect(redirected, self):
File "/usr/lib/python2.3/site-packages/linkcheck/checker/
cache.py", line 173, in checked_redirect
url_data.copy_from_cache(self.checked[key])
NameError: global name 'key' is not defined
System info:
LinkChecker 1.13.0
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

And I've attached an excerpt of the debug output from the run with
-Dall set

@wummel
Copy link
Owner Author

wummel commented Dec 21, 2012

Submitted by calvin

Logged In: YES
user_id=9205

This is fixed and checked in CVS and will be in the next
release.
lincheck/checker/cache.py, rev. 1.8

@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