Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
ankikong committed May 3, 2020
1 parent 9348869 commit cd8e446
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utility/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ def req(self, method: str, url: str, useProxy: bool = False, wantStatusCode: int
except Exception as e:
logger.debug(str(e) + ",retrying......")
time.sleep(self.retryDelay)
logger.error("network error, all retry failed")
logger.error("network, {} {} want[{}]".format(
method, url, wantStatusCode))
raise Exception("check network status")

def get(self, url, useProxy: bool = False, wantStatusCode: int = None, **args) -> requests.models.Response:
Expand Down

0 comments on commit cd8e446

Please sign in to comment.