Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix(bugs): small bugfixes, added selenium debugging port (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
timreibe authored Jun 14, 2021
1 parent 3829cf6 commit 76fb465
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/its.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ def get_chromedriver(self, headless):

# Zur Behebung von "DevToolsActivePort file doesn't exist"
# chrome_options.add_argument("-no-sandbox");
chrome_options.add_argument("-disable-dev-shm-usage");
chrome_options.add_argument("--disable-dev-shm-usage")
chrome_options.add_argument("--remote-debugging-port=9222")

# Chrome head is only required for the backup booking process.
# User-Agent is required for headless, because otherwise the server lets us hang.
Expand Down Expand Up @@ -917,7 +918,7 @@ def reservierung_finden_mit_code(
f"Vermittlungscode nicht gültig für diese PLZ")
if not res.ok:
raise RuntimeError(
"Termine in {plz} können nicht geladen werden: "
f"Termine in {plz} können nicht geladen werden: "
f"{res.status_code} {res.text}")

if 'Virtueller Warteraum des Impfterminservice' in res.text:
Expand Down

0 comments on commit 76fb465

Please sign in to comment.