From 1ad817566de019521f565f4a7542f91b97c8a7a4 Mon Sep 17 00:00:00 2001
From: jvoisin <julien.voisin@dustri.org>
Date: Wed, 4 Apr 2018 00:44:54 +0200
Subject: [PATCH] Fix the ci

---
 main.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/main.py b/main.py
index e9052b4..a405223 100755
--- a/main.py
+++ b/main.py
@@ -39,7 +39,10 @@ def show_meta(filename:str):
         return
     print("[+] Metadata for %s:" % filename)
     for k,v in p.get_meta().items():
-        print("  %s: %s" % (k, v))
+        try:  # FIXME this is ugly.
+            print("  %s: %s" % (k, v))
+        except UnicodeEncodeError:
+            print("  %s: harmful content" % k)
 
 def clean_meta(filename:str):
     if not __check_file(filename, os.R_OK|os.W_OK):
-- 
GitLab