We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41bc62a commit a3267f5Copy full SHA for a3267f5
botcity/web/bot.py
@@ -250,9 +250,10 @@ def binary_path(self, binary_path: str):
250
Args:
251
binary_path (str): The binary path to be used.
252
"""
253
- if not os.path.exists(binary_path):
+ path = pathlib.Path(binary_path)
254
+ if not path.is_file():
255
raise ValueError("There is no file in the binary path.")
- self._binary_path = pathlib.Path(binary_path)
256
+ self._binary_path = path
257
258
def start_browser(self):
259
0 commit comments