You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version of script: 1.5
OS: windows xp
I tried to generate a sitemap using the urllist method.
When the script writes the sitemap_index file the following error occurs:
The Sitemap type is WEB Sitemap.
...
Writing index file "C:\tools\sitemapGenerator\sitemap\sitemap_index.xml"
with 2 Sitemaps
Traceback (most recent call last):
File "sitemap_gen.py", line 2092, in ?
sitemap.Generate()
File "sitemap_gen.py", line 1665, in Generate
self.WriteIndex()
File "sitemap_gen.py", line 1810, in WriteIndex
fd.write(sitemap_index_header)
UnboundLocalError: local variable 'sitemap_index_header' referenced before
assignment
There's an extra underscore when referencing the sitemap_index_header
variable in the WriteIndex method, line 1802. The line reads
sitemap__index_header = GENERAL_SITEMAP_HEADER
versus
sitemap_index_header = GENERAL_SITEMAP_HEADER
Thanks,
Leah
Original issue reported on code.google.com by leah.pod...@gmail.com on 11 Apr 2008 at 8:24
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
leah.pod...@gmail.com
on 11 Apr 2008 at 8:24The text was updated successfully, but these errors were encountered: