[F] Fix windows paths

This commit is contained in:
wuliaozhiji 2022-08-30 19:27:41 -04:00
parent 8a4a96634c
commit 59fa4e5ecc
2 changed files with 10 additions and 3 deletions

View file

@ -6,6 +6,7 @@ import json
import random
import re
from itertools import permutations
import traceback
from typing import Iterable
from math import ceil
@ -389,7 +390,11 @@ def run():
preset = preset.set_light_dl(config.lightness)
# Run
run_neofetch(preset, config.color_align)
try:
run_neofetch(preset, config.color_align)
except Exception as e:
print(f'Error: {e}')
traceback.print_exc()
if args.ask_exit:
input('Press any key to exit...')