Should return 404 for api to handle
None can't be handled correctly by api.py
This commit is contained in:
@@ -85,7 +85,7 @@ class Parser:
|
||||
else:
|
||||
self.detailurl = self.queryNumberUrl(number)
|
||||
if not self.detailurl:
|
||||
return None
|
||||
return 404
|
||||
htmltree = self.getHtmlTree(self.detailurl)
|
||||
result = self.dictformat(htmltree)
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user