From b1016b029e65b850fd1228f527e3770cff9316c5 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Sat, 20 Jul 2024 16:40:45 +0800 Subject: [PATCH] Fix file is not a cloud file --- game_backuper/cfapi.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/game_backuper/cfapi.py b/game_backuper/cfapi.py index 047ae74..4ad1cdc 100644 --- a/game_backuper/cfapi.py +++ b/game_backuper/cfapi.py @@ -92,7 +92,9 @@ def hydrate_file(s: str): except OSError as e: if GetLastError() != ERROR_INVALID_FUNCTION: CfCloseHandle(h) - raise e + # File is not cloud file + if e.winerror != -2147024520: + raise e CfCloseHandle(h)