From 19977788484d6c31df922cb0b7d124d01d293a88 Mon Sep 17 00:00:00 2001
From: jvoisin <julien.voisin@dustri.org>
Date: Wed, 7 Nov 2018 22:02:40 +0100
Subject: [PATCH] Fix stuff?

---
 mat2 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/mat2 b/mat2
index 0dc3b3d..351d97b 100755
--- a/mat2
+++ b/mat2
@@ -88,7 +88,10 @@ def __print_meta(filename: str, metadata: dict, depth: int=1):
         # Remove control characters
         # We might use 'Cc' instead of 'C', but better safe than sorry
         # https://www.unicode.org/reports/tr44/#GC_Values_Table
-        v = ''.join(ch for ch in v if not unicodedata.category(ch).startswith('C'))
+        try:
+            v = ''.join(ch for ch in v if not unicodedata.category(ch).startswith('C'))
+        except TypeError:
+            pass  # for things that aren't iterable
 
         try:  # FIXME this is ugly.
             print(padding + "  %s: %s" % (k, v))
-- 
GitLab