mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
SyncServer - handle possible race condition
This might throw FileNotFoundError for missing file if progress check is faster than file creation
This commit is contained in:
parent
2de2f20bdf
commit
e062d960b3
1 changed files with 4 additions and 1 deletions
|
|
@ -170,7 +170,10 @@ class LocalDriveHandler(AbstractProvider):
|
|||
site=site,
|
||||
progress=status_val
|
||||
)
|
||||
target_file_size = os.path.getsize(target_path)
|
||||
try:
|
||||
target_file_size = os.path.getsize(target_path)
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
time.sleep(0.5)
|
||||
|
||||
def _normalize_site_name(self, site_name):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue