From d7ab96856c415ba6a64f27fbbf93c0458779cf97 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 15 May 2021 09:42:52 +0530 Subject: [PATCH] ... --- kitty/rc/set_background_image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/rc/set_background_image.py b/kitty/rc/set_background_image.py index 953308d46..54fdf4d60 100644 --- a/kitty/rc/set_background_image.py +++ b/kitty/rc/set_background_image.py @@ -82,7 +82,7 @@ failed, the command will exit with a success code. ret['data'] = '-' return ret if imghdr.what(path) != 'png': - self.fatal('{} is not a PNG image'.format(path)) + self.fatal(f'{path} is not a PNG image') def file_pipe(path: str) -> Generator[Dict, None, None]: with open(path, 'rb') as f: