Merge pull request #998 from biaji/patch-4
Should return 404 for api to handle
This commit is contained in:
@@ -85,7 +85,7 @@ class Parser:
|
|||||||
else:
|
else:
|
||||||
self.detailurl = self.queryNumberUrl(number)
|
self.detailurl = self.queryNumberUrl(number)
|
||||||
if not self.detailurl:
|
if not self.detailurl:
|
||||||
return None
|
return 404
|
||||||
htmltree = self.getHtmlTree(self.detailurl)
|
htmltree = self.getHtmlTree(self.detailurl)
|
||||||
result = self.dictformat(htmltree)
|
result = self.dictformat(htmltree)
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user