[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#847208: AttributeError: 'module' object has no attribute 'warning'



Control: tags -1 +patch +pending
Control: forwarded -1 https://github.com/linkcheck/linkchecker/pull/104

Thanks for the bug report, try this patch:

From 71be9b941b2f2e101d5cbe9113913cca32a4fe27 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= <anarcat@debian.org>
Date: Fri, 3 Nov 2017 09:47:01 -0400
Subject: [PATCH] fix incorrect call to the logging module (Closes: #847208)

---
 linkcheck/htmlutil/formsearch.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/linkcheck/htmlutil/formsearch.py b/linkcheck/htmlutil/formsearch.py
index 05d698b6..d66a2096 100644
--- a/linkcheck/htmlutil/formsearch.py
+++ b/linkcheck/htmlutil/formsearch.py
@@ -71,10 +71,10 @@ def start_element(self, tag, attrs):
                     value = attrs.get('value')
                     self.form.add_value(key, value)
                 else:
-                    log.warning(LOG_CHECK, "nameless form input %s" % attrs)
+                    log.warn(LOG_CHECK, "nameless form input %s" % attrs)
                     pass
             else:
-                log.warning(LOG_CHECK, "formless input´%s" % attrs)
+                log.warn(LOG_CHECK, "formless input´%s" % attrs)
                 pass
 
     def start_end_element(self, tag, attrs):

Attachment: signature.asc
Description: PGP signature


Reply to: