Skip to content

Commit

Permalink
Merge pull request mvdctop#649 from Suwmlee/master
Browse files Browse the repository at this point in the history
Fix: raise exception in get html
  • Loading branch information
mvdctop authored Nov 25, 2021
2 parents 433eafb + 0fcb11b commit 8d95adc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ADC_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@ def get_html(url, cookies: dict = None, ua: str = None, return_type: str = None,
return result.text
except requests.exceptions.ProxyError:
print("[-]Proxy error! Please check your Proxy")
return
raise requests.exceptions.ProxyError
except Exception as e:
print("[-]Connect retry {}/{}".format(i + 1, configProxy.retry))
errors = str(e)
print('[-]Connect Failed! Please check your Proxy or Network!')
print("[-]" + errors)
raise Exception('Connect Failed')


def post_html(url: str, query: dict, headers: dict = None) -> requests.Response:
Expand Down

0 comments on commit 8d95adc

Please sign in to comment.