From 8be531e5e288b4ea50b272388fdbb20de42d68cf Mon Sep 17 00:00:00 2001 From: Ploum Date: Thu, 1 Feb 2024 14:33:44 +0100 Subject: [PATCH] a simple type was forcing images to be rendered twice --- ansicat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansicat.py b/ansicat.py index 713e142..58ce78d 100755 --- a/ansicat.py +++ b/ansicat.py @@ -131,7 +131,7 @@ def inline_image(img_file,width): cmd = inlines.pop(0)%width + " %s" try: ansi_img = run(cmd, parameter=img_file) - image_succes = True + image_success = True except Exception as err: ansi_img = "***IMAGE ERROR***\n%s…\n…%s" %(str(err)[:50],str(err)[-50:]) return ansi_img