Skip to content

Commit

Permalink
Merge pull request #16 from monofox/master
Browse files Browse the repository at this point in the history
Fixes  #15: colors is checked in wro…
  • Loading branch information
tnagorra authored Nov 6, 2020
2 parents ac4a0d3 + e97bd3d commit 7ea8317
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alacritty_colorscheme/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ def replace_colorscheme(colors_path: str, config_path: str, colorscheme: str,
config_yaml = yaml.load(config_file)
colors_yaml = yaml.load(color_file)

if config_yaml['colors']:
try:
# NOTE: update method doesn't read the first comment
config_yaml['colors'].update(colors_yaml['colors'])
else:
except KeyError:
config_yaml['colors'] = colors_yaml['colors']

new_comment_token = CommentToken(
Expand Down

0 comments on commit 7ea8317

Please sign in to comment.