Skip to content

Commit 88d4dda

Browse files
bayandinandreastt
authored andcommitted
Fix exception message formatting
Signed-off-by: Andreas Tolfsen <ato@mozilla.com>
1 parent 20a4471 commit 88d4dda

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

py/selenium/webdriver/chrome/service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def start(self):
6363
self.service_args, env=env, stdout=PIPE, stderr=PIPE)
6464
except:
6565
raise WebDriverException(
66-
"ChromeDriver executable needs to be available in the path. \
67-
Please download from http://chromedriver.storage.googleapis.com/index.html\
68-
and read up at http://code.google.com/p/selenium/wiki/ChromeDriver")
66+
"ChromeDriver executable needs to be available in the path. "
67+
"Please download from http://chromedriver.storage.googleapis.com/index.html "
68+
"and read up at http://code.google.com/p/selenium/wiki/ChromeDriver")
6969
count = 0
7070
while not utils.is_connectable(self.port):
7171
count += 1

py/selenium/webdriver/ie/service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ def start(self):
6868
raise
6969
except:
7070
raise WebDriverException(
71-
"IEDriver executable needs to be available in the path. \
72-
Please download from http://selenium-release.storage.googleapis.com/index.html\
73-
and read up at http://code.google.com/p/selenium/wiki/InternetExplorerDriver")
71+
"IEDriver executable needs to be available in the path. "
72+
"Please download from http://selenium-release.storage.googleapis.com/index.html "
73+
"and read up at http://code.google.com/p/selenium/wiki/InternetExplorerDriver")
7474
count = 0
7575
while not utils.is_url_connectable(self.port):
7676
count += 1

py/selenium/webdriver/opera/service.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ def start(self):
4949
self.process = subprocess.Popen(["java", "-jar", self.path, "-port", "%s" % self.port])
5050
except:
5151
raise WebDriverException(
52-
"OperaDriver executable needs to be available in the path. \
53-
")
52+
"OperaDriver executable needs to be available in the path.")
5453
time.sleep(10)
5554
count = 0
5655
while not utils.is_connectable(self.port):

0 commit comments

Comments
 (0)