From 610998aafd71bd961990fa20d08ef637891720c0 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 9 Apr 2023 12:29:09 -0700 Subject: [PATCH] bugfix --- coder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coder.py b/coder.py index 8d3aa915b..016f31f92 100755 --- a/coder.py +++ b/coder.py @@ -315,7 +315,7 @@ class Coder: res = res[1:-1] res = '\n'.join(res) - if res[-1] != '\n': + if res and res[-1] != '\n': res += '\n' return res