Update _ensure_packages_have_version.py

This commit is contained in:
mauro 🤙 2024-08-25 12:29:46 +02:00 committed by GitHub
parent 07201fb251
commit 079d43b32a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,6 @@
def ensure_packages_have_version(theme_data):
if 'version' not in theme_data:
if theme_data.get('version', None) is None:
print(" Version is required in theme.json. Adding default value of 1.0.0.")
theme_data['version'] = '1.0.0'
return theme_data