1
0
mirror of synced 2024-11-22 17:24:23 +01:00

Fix the ci

This commit is contained in:
jvoisin 2018-04-04 00:44:54 +02:00
parent 6c19e43e5d
commit 1ad817566d

View File

@ -39,7 +39,10 @@ def show_meta(filename:str):
return return
print("[+] Metadata for %s:" % filename) print("[+] Metadata for %s:" % filename)
for k,v in p.get_meta().items(): 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): def clean_meta(filename:str):
if not __check_file(filename, os.R_OK|os.W_OK): if not __check_file(filename, os.R_OK|os.W_OK):