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()
|
available.sort()
|
||||||
|
|
||||||
# make default theme the first option
|
# make default theme the first option
|
||||||
i = available.index('default')
|
if 'default' in available:
|
||||||
if i >= 0:
|
i = available.index('default')
|
||||||
available.pop(i)
|
available.pop(i)
|
||||||
available.insert(0, 'default')
|
available.insert(0, 'default')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue