Error: Theme File Generation Failed

I am suddently getting this error in v12.7.0:

Traceback (most recent call last):
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/website/doctype/website_theme/website_theme.py”, line 112, in generate_theme_files_if_not_exist
doc.generate_theme_if_not_exist()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/website/doctype/website_theme/website_theme.py”, line 81, in generate_theme_if_not_exist
theme_path = join_path(bench_path, ‘sites’, self.theme_url[1:])
TypeError: ‘NoneType’ object is not subscriptable

I have never tried to modify my theme so i don’t know what’s going on here.

Same issue in a new version-12 instance :

Traceback (most recent call last):
File “/home/frappe/ao_recoo/apps/frappe/frappe/website/doctype/website_theme/website_theme.py”, line 115, in generate_theme_files_if_not_exist
doc.generate_theme_if_not_exist()
File “/home/frappe/ao_recoo/apps/frappe/frappe/website/doctype/website_theme/website_theme.py”, line 86, in generate_theme_if_not_exist
self.generate_bootstrap_theme()
File “/home/frappe/ao_recoo/apps/frappe/frappe/website/doctype/website_theme/website_theme.py”, line 73, in generate_bootstrap_theme
frappe.throw(‘

{stderr}
’.format(stderr=stderr))
File “/home/frappe/ao_recoo/apps/frappe/frappe/init.py”, line 377, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’, is_minimizable=is_minimizable)
File “/home/frappe/ao_recoo/apps/frappe/frappe/init.py”, line 356, in msgprint
_raise_exception()
File “/home/frappe/ao_recoo/apps/frappe/frappe/init.py”, line 316, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError:
undefined