summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xTools/webchecker/webchecker.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tools/webchecker/webchecker.py b/Tools/webchecker/webchecker.py
index 5d127cb..e79e7f1 100755
--- a/Tools/webchecker/webchecker.py
+++ b/Tools/webchecker/webchecker.py
@@ -681,7 +681,10 @@ class Page:
# Method to retrieve names.
def getnames(self):
- return self.parser.names
+ if self.parser:
+ return self.parser.names
+ else:
+ return []
def getlinkinfos(self):
# File reading is done in __init__() routine. Store parser in