Skip to content

Commit fd488f6

Browse files
committed
docker_mods theme.py fix if folder doesnt exist
1 parent 7b275a3 commit fd488f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: themes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def create_css(theme, theme_type="standard"):
150150
if __name__ == "__main__":
151151
app_folders = [name for name in listdir('./css/base') if isdir(join('./css/base', name))]
152152
themes = [name for name in listdir('./css/theme-options') if isfile(join('./css/theme-options', name))]
153-
docker_mods = [name for name in listdir('./docker-mods') if isdir(join('./docker-mods', name))]
153+
docker_mods = [name for name in listdir('./docker-mods')] if isdir('./docker-mods') else []
154154
community_themes = [name for name in listdir('./css/community-theme-options') if isfile(join('./css/community-theme-options', name))]
155155
develop = True if isdir(".git") and subprocess.check_output(["git", "symbolic-ref", "--short", "HEAD"]).decode('ascii').strip() == "develop" else False
156156
if env_domain:

0 commit comments

Comments
 (0)