From f537edc4cbff9ff97c207bca652ff55d46dfe43f Mon Sep 17 00:00:00 2001 From: Homer S Date: Fri, 8 Oct 2021 09:22:15 +0200 Subject: [PATCH] Script failed when Callers Number was empty i.e. NoneType. Put a['Number'] into str() fixed this. --- fritzab2matrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fritzab2matrix.py b/fritzab2matrix.py index a7ccc49..969a702 100755 --- a/fritzab2matrix.py +++ b/fritzab2matrix.py @@ -124,7 +124,7 @@ def fritzab2matrix(tam): for a in messages: # format the information regarding the message - msg_info = a['Date'] + " - " + a['Number'] + msg_info = a['Date'] + " - " + str(a['Number']) if a['Name']: msg_info += " (" + a['Name'] + ") "