mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
fix crash when path isn't a directory
This commit is contained in:
@@ -113,6 +113,8 @@ class PosterboardTweak(Tweak):
|
||||
isAdding: bool = False,
|
||||
randomizeUUID: bool = False, randomizedID: int = None
|
||||
):
|
||||
if not os.path.isdir(curr_path):
|
||||
return
|
||||
for folder in sorted(os.listdir(curr_path)):
|
||||
if folder.startswith('.') or folder == "__MACOSX":
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user