Skip to content

Commit

Permalink
Merge pull request #428 from mathoudebine/fix/401-theme-editor-crashe…
Browse files Browse the repository at this point in the history
…s-when-using-vim
  • Loading branch information
mathoudebine authored Dec 22, 2023
2 parents d038a91 + e695c8f commit 44ae7ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theme-editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def on_zone_click(event):
"update automatically")
# Every time the theme file is modified: reload preview
while True:
if os.path.getmtime(theme_file) > last_edit_time:
if os.path.exists(theme_file) and os.path.getmtime(theme_file) > last_edit_time:
logger.debug("The theme file has been updated, the preview window will refresh")
refresh_theme()
last_edit_time = os.path.getmtime(theme_file)
Expand Down

0 comments on commit 44ae7ea

Please sign in to comment.