Add integration tests for requests with proxy param

This commit is contained in:
ngosang
2023-05-23 22:13:52 +02:00
parent efaa5f31b6
commit 3c97c9603a
5 changed files with 109 additions and 11 deletions

View File

@@ -242,7 +242,7 @@ def _resolve_challenge(req: V1RequestBase, method: str) -> ChallengeResolutionT:
except FunctionTimedOut:
raise Exception(f'Error solving the challenge. Timeout after {timeout} seconds.')
except Exception as e:
raise Exception('Error solving the challenge. ' + str(e))
raise Exception('Error solving the challenge. ' + str(e).replace('\n', '\\n'))
finally:
if not req.session and driver is not None:
driver.quit()