From 79cafedd87ff1b2d10c648e75057b2c99fc72fcd Mon Sep 17 00:00:00 2001 From: AE Creations Date: Sun, 3 Mar 2024 09:35:41 -0800 Subject: [PATCH] Handle non-existent sync file when checking if it is read only (part of issue #18) --- src/syncClippings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syncClippings.py b/src/syncClippings.py index d64bacc..6ff3fb8 100755 --- a/src/syncClippings.py +++ b/src/syncClippings.py @@ -73,7 +73,7 @@ def getSyncFileInfo(aSyncFileDir): rv = { "fileName": "", "fileSizeKB": "", - "readOnly": False + "readOnly": None } if not Path(aSyncFileDir).exists(): log("getSyncFileInfo(): Directory does not exist: %s" % aSyncFileDir)