Apply suggestion from @cubic-dev-ai[bot]

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Nick Sweeting
2025-12-31 02:31:46 -05:00
committed by GitHub
parent b8a66c4a84
commit f7b186d7c8

View File

@@ -504,7 +504,7 @@ def chrome_cleanup():
chrome_user_data_dir = config.get('CHROME_USER_DATA_DIR')
if chrome_user_data_dir:
singleton_lock = Path(chrome_user_data_dir) / 'SingletonLock'
if singleton_lock.exists():
if os.path.lexists(singleton_lock):
try:
singleton_lock.unlink()
except OSError: