fix: avoid error if 'default' theme not included
This commit is contained in:
parent
5a78b0740d
commit
207125bdb3
1 changed files with 2 additions and 2 deletions
|
@ -300,8 +300,8 @@ def get_available_themes(rattail_config, include=None):
|
|||
available.sort()
|
||||
|
||||
# make default theme the first option
|
||||
if 'default' in available:
|
||||
i = available.index('default')
|
||||
if i >= 0:
|
||||
available.pop(i)
|
||||
available.insert(0, 'default')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue