fix Dockerfile and INSTALLER_BIN_ABSPATH when not available on host

This commit is contained in:
Nick Sweeting 2024-10-21 03:16:07 -07:00
parent 8a2b38b46c
commit 9b7ad2cae6
No known key found for this signature in database
4 changed files with 27 additions and 23 deletions

View file

@ -53,7 +53,10 @@ class PlaywrightBinProvider(BaseBinProvider):
@computed_field
@property
def INSTALLER_BIN_ABSPATH(self) -> HostBinPath | None:
return PLAYWRIGHT_BINARY.load().abspath
try:
return PLAYWRIGHT_BINARY.load().abspath
except Exception as e:
return None
def setup(self) -> None:
# update paths from config if they arent the default