Commit fbed510b8fce2f01c3535303bf1b1fb1c891b17c

Authored by Christian Herdtweck
1 parent 304db0e6

msodde: Update crypto error

Showing 1 changed file with 2 additions and 2 deletions
oletools/msodde.py
@@ -64,7 +64,7 @@ from oletools import xls_parser @@ -64,7 +64,7 @@ from oletools import xls_parser
64 from oletools import rtfobj 64 from oletools import rtfobj
65 from oletools import oleid 65 from oletools import oleid
66 from oletools.common.log_helper import log_helper 66 from oletools.common.log_helper import log_helper
67 -from oletools.common.errors import FileIsEncryptedError 67 +from oletools.common.errors import UnsupportedEncryptionError
68 68
69 # ----------------------------------------------------------------------------- 69 # -----------------------------------------------------------------------------
70 # CHANGELOG: 70 # CHANGELOG:
@@ -898,7 +898,7 @@ def process_file(filepath, field_filter_mode=None): @@ -898,7 +898,7 @@ def process_file(filepath, field_filter_mode=None):
898 oid = oleid.OleID(ole) 898 oid = oleid.OleID(ole)
899 if oid.check_encrypted().value: 899 if oid.check_encrypted().value:
900 log.debug('is encrypted - raise error') 900 log.debug('is encrypted - raise error')
901 - raise FileIsEncryptedError(filepath) 901 + raise UnsupportedEncryptionError(filepath)
902 elif oid.check_powerpoint().value: 902 elif oid.check_powerpoint().value:
903 log.debug('is ppt - cannot have DDE') 903 log.debug('is ppt - cannot have DDE')
904 return u'' 904 return u''