Skip to content

Commit dabf4d3

Browse files
committed
cs_themes.py: Don't print an error if metadata.json is missing
This was triggered on any theme installed in ~/.local/share/themes or ~/.themes.
1 parent 3d4e67e commit dabf4d3

File tree

1 file changed

+3
-2
lines changed
  • files/usr/share/cinnamon/cinnamon-settings/bin

1 file changed

+3
-2
lines changed

files/usr/share/cinnamon/cinnamon-settings/bin/Spices.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,9 @@ def _load_metadata(self):
420420
metadata['writable'] = os.access(subdirectory, os.W_OK)
421421
self.meta_map[uuid] = metadata
422422
except Exception as detail:
423-
print(detail)
424-
print("Skipping %s: there was a problem trying to read metadata.json" % uuid)
423+
if not self.themes:
424+
print(detail)
425+
print("Skipping %s: there was a problem trying to read metadata.json" % uuid)
425426
else:
426427
print("%s does not exist! Creating it now." % directory)
427428
subprocess.call(["mkdir", "-p", directory])

0 commit comments

Comments
 (0)