diff --git a/assets/fickling-audit.py b/assets/fickling-audit.py index a3f690e7..f1073325 100644 --- a/assets/fickling-audit.py +++ b/assets/fickling-audit.py @@ -1,10 +1,15 @@ import fickling from os import environ, path +import sys def is_pickle_unsafe(file_path): try: return not fickling.is_likely_safe(file_path) - except Exception: + except (NotImplementedError): + return False + except Exception as e: + # print exception on stderr + print("%s: (%s) %s" % (e.__class__.__qualname__, file_path, e), file=sys.stderr) return False def main():