Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions TMWebDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ def execute_js(self, code, timeout=15, session_id=None) -> Any:

def _remote_cmd(self, cmd):
try: return requests.post(self.remote, headers={"Content-Type": "application/json"}, json=cmd, timeout=30).json()
except (ConnectionError, requests.exceptions.ConnectionError):
raise ConnectionError("TMWebDriver master未运行,看tmwebdriver_sop后台启动一个TMWebDriver")
except (ConnectionError, requests.exceptions.ConnectionError) as e:
raise ConnectionError("TMWebDriver master未运行,看tmwebdriver_sop后台启动一个TMWebDriver") from e

def get_all_sessions(self):
if self.is_remote:
Expand Down