Skip to content

Commit

Permalink
Merge with 'wenxintishi' fix
Browse files Browse the repository at this point in the history
  • Loading branch information
houtianze committed Jun 10, 2015
2 parents 5991115 + 1ff3fba commit f7d47c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,9 @@ def __request_work(self, url, pars, act, method, actargs = None, addtoken = True
result = act(r, actargs)
if result == ENoError:
self.pd("Request all goes fine")
elif sc == 404 and r.url.find('http://bcscdn.baidu.com/bcs-cdn/wenxintishi') == 0: # = "error_code":31390,"error_msg":"Illegal File"
self.pd("File is blacklisted ('wenxintishi'). Skipping.")
result = EFileNotFound
else:
ec = 0
try:
Expand Down

0 comments on commit f7d47c5

Please sign in to comment.