mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-01-03 01:15:57 +10:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user