From fad5ae5956c07a32674be3373361ac477c572780 Mon Sep 17 00:00:00 2001 From: "Remi GASCOU (Podalirius)" <79218792+p0dalirius@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:12:49 +0200 Subject: [PATCH] Fixes #84 Blank line in target file crashes coercer --- coercer/__main__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/coercer/__main__.py b/coercer/__main__.py index 1bc97de..90bda88 100755 --- a/coercer/__main__.py +++ b/coercer/__main__.py @@ -190,6 +190,7 @@ def main(): sys.exit(0) # Sort uniq on targets list + targets = [t.strip() for t in targets if len(t.strip()) != 0] targets = sorted(list(set(targets))) final_targets = []