Refactor: More f-string

This commit is contained in:
pagedown
2022-01-28 19:34:13 +08:00
parent e0c4a90aa3
commit dc61adf9d8
14 changed files with 35 additions and 54 deletions

View File

@@ -19,7 +19,7 @@ def run(*args):
try:
subprocess.check_call(args)
except OSError:
raise SystemExit('You are missing the {} program needed to generate the kitty logo'.format(args[0]))
raise SystemExit(f'You are missing the {args[0]} program needed to generate the kitty logo')
def render(output, sz=256, src=unframed_src):