summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoDRM <[email protected]>2022-01-02 18:52:07 +0100
committerNoDRM <[email protected]>2022-01-02 18:52:07 +0100
commitb2b55531d39d8a34c98bdc98c70218502e4f546b (patch)
tree8dc813aece6a11e75bdde52bc50dc8d813d7391e
parentb84cf9aeb85f67b840c6b2cf84b1717e65edd5cd (diff)
Fix FileNotFoundError during PassHash handling
-rw-r--r--DeDRM_plugin/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/DeDRM_plugin/__init__.py b/DeDRM_plugin/__init__.py
index 050fefb..83b4b7a 100644
--- a/DeDRM_plugin/__init__.py
+++ b/DeDRM_plugin/__init__.py
@@ -393,8 +393,11 @@ class DeDRM(FileTypePlugin):
defaultkeys_ade = []
if iswindows:
# Right now this is only implemented for Windows. MacOS support still needs to be added.
- from adobekey_get_passhash import passhash_keys
- defaultkeys_ade, names = passhash_keys()
+ from adobekey_get_passhash import passhash_keys, ADEPTError
+ try:
+ defaultkeys_ade, names = passhash_keys()
+ except ADEPTError:
+ defaultkeys_ade = []
if isosx:
print("{0} v{1}: Dumping ADE PassHash data is not yet supported on MacOS.".format(PLUGIN_NAME, PLUGIN_VERSION))
defaultkeys_ade = []