Fixed problem with non-http websites

This commit is contained in:
simon
2018-02-06 15:50:47 -05:00
parent 23775ec126
commit 854fc76cc1
5 changed files with 838 additions and 14 deletions

View File

@@ -221,8 +221,7 @@ class ApacheParser(PageParser):
def page_is_valid(self, text):
try:
links = self.get_links(text, "")
print(links)
self.get_links(text, "")
return True
except Exception as e:
print("This is not recognised Apache open directory: " + str(e))