summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorjvoisin2018-04-04 00:44:54 +0200
committerjvoisin2018-04-04 01:06:35 +0200
commit1ad817566de019521f565f4a7542f91b97c8a7a4 (patch)
tree1159932c97938762d88b091551a77043698c514e /main.py
parent6c19e43e5dea72a0b15d4b1291544b1d626149d7 (diff)
Fix the ci
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py5
1 files changed, 4 insertions, 1 deletions
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):
39 return 39 return
40 print("[+] Metadata for %s:" % filename) 40 print("[+] Metadata for %s:" % filename)
41 for k,v in p.get_meta().items(): 41 for k,v in p.get_meta().items():
42 print(" %s: %s" % (k, v)) 42 try: # FIXME this is ugly.
43 print(" %s: %s" % (k, v))
44 except UnicodeEncodeError:
45 print(" %s: harmful content" % k)
43 46
44def clean_meta(filename:str): 47def clean_meta(filename:str):
45 if not __check_file(filename, os.R_OK|os.W_OK): 48 if not __check_file(filename, os.R_OK|os.W_OK):