Date: Fri, 23 Nov 2018 06:47:42 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 233427] www/google-sitemapgen: local variable referenced before assignment Message-ID: <bug-233427-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233427 Bug ID: 233427 Summary: www/google-sitemapgen: local variable referenced before assignment Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: vladislav.movchan@gmail.com Attachment #199471 text/plain mime type: Created attachment 199471 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D199471&action= =3Dedit Patch When www/google-sitemapgen asked to build sitemap_index.xml it throws the following error: Writing index file "sitemap_index.xml" with 13 Sitemaps Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/sitemap_gen.py", line 2092, = in <module> sitemap.Generate() File "/usr/local/lib/python2.7/site-packages/sitemap_gen.py", line 1665, = in Generate self.WriteIndex() File "/usr/local/lib/python2.7/site-packages/sitemap_gen.py", line 1810, = in WriteIndex fd.write(sitemap_index_header) UnboundLocalError: local variable 'sitemap_index_header' referenced before assignment This caused by the typo (sitemap_index_header -> sitemap__index_header) in = the source code of the upstream project. But due to upstream project is not maintained there is no way to submit this fix to upstream. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233427-7788>