()
| 1329 | error: BaseException | None = None |
| 1330 | |
| 1331 | def acquire_in_thread() -> None: |
| 1332 | nonlocal error |
| 1333 | lock2 = lock_type(lock_path, timeout=0) |
| 1334 | try: |
| 1335 | lock2.acquire() |
| 1336 | except BaseException as exc: |
| 1337 | error = exc |
| 1338 | |
| 1339 | thread = threading.Thread(target=acquire_in_thread) |
| 1340 | thread.start() |