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 | 168 | """ |
| 169 | 169 | log.setLevel(logging.NOTSET) |
| 170 | 170 | |
| 171 | + | |
| 171 | 172 | def is_encrypted(some_file): |
| 172 | 173 | """ |
| 173 | 174 | Determine whether document contains encrypted content. |
| ... | ... | @@ -294,8 +295,6 @@ def _is_encrypted_ole(ole): |
| 294 | 295 | f_encrypted = (temp16 & 0x0100) >> 8 |
| 295 | 296 | if f_encrypted: |
| 296 | 297 | return True |
| 297 | - except Exception: | |
| 298 | - raise | |
| 299 | 298 | finally: |
| 300 | 299 | if stream is not None: |
| 301 | 300 | stream.close() | ... | ... |