Skip to content

Commit a3267f5

Browse files
committed
FIX: implement is_file in verify binary path
1 parent 41bc62a commit a3267f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

botcity/web/bot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,10 @@ 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):
253+
path = pathlib.Path(binary_path)
254+
if not path.is_file():
254255
raise ValueError("There is no file in the binary path.")
255-
self._binary_path = pathlib.Path(binary_path)
256+
self._binary_path = path
256257

257258
def start_browser(self):
258259
"""

0 commit comments

Comments
 (0)