From 47c3b333cecf2b487f3031ed7701c84cbe1d7f2d Mon Sep 17 00:00:00 2001
From: David Hendriks <davidhendriks93@gmail.com>
Date: Sun, 17 Jan 2021 20:30:08 +0000
Subject: [PATCH] made empty return if there is no output

---
 binarycpython/utils/functions.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/binarycpython/utils/functions.py b/binarycpython/utils/functions.py
index c1ad1f771..c73091b42 100644
--- a/binarycpython/utils/functions.py
+++ b/binarycpython/utils/functions.py
@@ -460,8 +460,10 @@ def output_lines(output: str) -> list:
         Iterator over the lines of the binary_c output
     """
 
-    return output.splitlines()
-
+    if output:
+        return output.splitlines()
+    else:
+        return []
 
 def example_parse_output(output: str, selected_header: str) -> dict:
     """
-- 
GitLab