Skip to content

Commit 41bc62a

Browse files
committed
ENH: Implement validate set binary path
1 parent eb8a1dc commit 41bc62a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

botcity/web/bot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ def binary_path(self, binary_path: str):
250250
Args:
251251
binary_path (str): The binary path to be used.
252252
"""
253+
if not os.path.exists(binary_path):
254+
raise ValueError("There is no file in the binary path.")
253255
self._binary_path = pathlib.Path(binary_path)
254256

255257
def start_browser(self):

0 commit comments

Comments
 (0)