From 7db8aef6714acc48c0ed1118ab7ef0d6cdd6bc3d Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Fri, 26 Apr 2019 16:25:19 +0200 Subject: [PATCH] crypto: Correct whitespace, remove unnecessary code --- oletools/crypto.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/oletools/crypto.py b/oletools/crypto.py index 57b6a6f..83ef7c8 100644 --- a/oletools/crypto.py +++ b/oletools/crypto.py @@ -168,6 +168,7 @@ def enable_logging(): """ log.setLevel(logging.NOTSET) + def is_encrypted(some_file): """ Determine whether document contains encrypted content. @@ -294,8 +295,6 @@ def _is_encrypted_ole(ole): f_encrypted = (temp16 & 0x0100) >> 8 if f_encrypted: return True - except Exception: - raise finally: if stream is not None: stream.close() -- libgit2 0.21.4