Skip to content

Commit 2321abc

Browse files
authored
Update version to 2.1.3-beta.0, enhance command_executor_url (#188)
1 parent 2b6af19 commit 2321abc

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ build
55
*.log
66
**/__pycache__
77
node_modules*
8+
.DS_Store

percy/driver_metadata.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ def session_id(self):
1212
def command_executor_url(self):
1313
url = Cache.get_cache(self.session_id, Cache.command_executor_url)
1414
if url is None:
15-
url = self.driver.command_executor._url # pylint: disable=W0212
15+
try:
16+
url = self.driver.command_executor._url # pylint: disable=W0212
17+
except (AttributeError, Exception):
18+
url = (
19+
self.driver.command_executor.client_config.remote_server_addr
20+
) # pylint: disable=W0212
21+
1622
Cache.set_cache(self.session_id, Cache.command_executor_url, url)
1723
return url
1824
return url

percy/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.1.2'
1+
__version__ = "2.1.3-beta.0"

0 commit comments

Comments
 (0)