From 3aaf10c7efb50b615d995424a240580f401561b7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20H=C3=B6gstedt?= <marin.hogstedt@hotmail.com>
Date: Wed, 12 Jun 2024 10:18:58 +0200
Subject: [PATCH] fixed the potential bug

---
 src/simudator/core/module.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/simudator/core/module.py b/src/simudator/core/module.py
index c28dab0..66d73fa 100644
--- a/src/simudator/core/module.py
+++ b/src/simudator/core/module.py
@@ -81,12 +81,15 @@ class Module:
         """
         pass
 
-    def get_longest_line_len(self, ignore_keys=[]) -> int:
+    def get_longest_line_len(self, ignore_keys=None) -> int:
         """
         Helper function for pretty_print that returns the length of
         the longest line to print for a module.
         """
 
+        if ignore_keys == None:
+            ignore_keys = []
+
         longest_line_len = 0
         state = self.get_state()
 
-- 
GitLab