Commit 7db8aef6714acc48c0ed1118ab7ef0d6cdd6bc3d
1 parent
5988d795
crypto: Correct whitespace, remove unnecessary code
Showing
1 changed file
with
1 additions
and
2 deletions
oletools/crypto.py
| @@ -168,6 +168,7 @@ def enable_logging(): | @@ -168,6 +168,7 @@ def enable_logging(): | ||
| 168 | """ | 168 | """ |
| 169 | log.setLevel(logging.NOTSET) | 169 | log.setLevel(logging.NOTSET) |
| 170 | 170 | ||
| 171 | + | ||
| 171 | def is_encrypted(some_file): | 172 | def is_encrypted(some_file): |
| 172 | """ | 173 | """ |
| 173 | Determine whether document contains encrypted content. | 174 | Determine whether document contains encrypted content. |
| @@ -294,8 +295,6 @@ def _is_encrypted_ole(ole): | @@ -294,8 +295,6 @@ def _is_encrypted_ole(ole): | ||
| 294 | f_encrypted = (temp16 & 0x0100) >> 8 | 295 | f_encrypted = (temp16 & 0x0100) >> 8 |
| 295 | if f_encrypted: | 296 | if f_encrypted: |
| 296 | return True | 297 | return True |
| 297 | - except Exception: | ||
| 298 | - raise | ||
| 299 | finally: | 298 | finally: |
| 300 | if stream is not None: | 299 | if stream is not None: |
| 301 | stream.close() | 300 | stream.close() |