Skip to content

Commit 79c7851

Browse files
committed
🐛 check if color scheme is valid before loading
1 parent 82ad980 commit 79c7851

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def get_style(color_scheme):
127127
if os.path.exists(USER_STYLE_FILE):
128128
with open(USER_STYLE_FILE) as fp:
129129
css += '\n' + fp.read() + '\n'
130-
if color_scheme:
130+
if color_scheme and color_scheme.endswith('.tmTheme'):
131131
css += pygments_from_theme(get_resource(color_scheme))
132132
return ''.join([line.strip() + ' ' for line in css.splitlines()])
133133

0 commit comments

Comments
 (0)