Skip to content

Commit 268c0af

Browse files
Handle no dict properly.
1 parent 2dd282b commit 268c0af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sublime_python_colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def generate_color_scheme_async():
8787
found_styles = {"gutter": False, "warning": False, "error": False}
8888
for d in dicts.findall("./dict"):
8989
for c in d.getchildren():
90-
if "sublimepythonide" in c.text:
90+
if c.text and "sublimepythonide" in c.text:
9191
style = style_map.get(c.text)
9292
color_elem = d.find("./dict/string")
9393
found_color = color_elem.text.upper().lstrip("#")

0 commit comments

Comments
 (0)