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 64 from oletools import rtfobj
65 65 from oletools import oleid
66 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 70 # CHANGELOG:
... ... @@ -898,7 +898,7 @@ def process_file(filepath, field_filter_mode=None):
898 898 oid = oleid.OleID(ole)
899 899 if oid.check_encrypted().value:
900 900 log.debug('is encrypted - raise error')
901   - raise FileIsEncryptedError(filepath)
  901 + raise UnsupportedEncryptionError(filepath)
902 902 elif oid.check_powerpoint().value:
903 903 log.debug('is ppt - cannot have DDE')
904 904 return u''
... ...