summaryrefslogtreecommitdiffstats
path: root/DeDRM_plugin
diff options
context:
space:
mode:
authorNoDRM <[email protected]>2022-08-07 09:31:49 +0200
committerNoDRM <[email protected]>2022-08-07 09:31:49 +0200
commit52cf3faa591c2fce5b04d899484afb491c490531 (patch)
tree4f1d57d6e3f9f8e1d37e454ba32bdad5bdcfc405 /DeDRM_plugin
parentb12e567c5fdf06c22bf583329bf9e0b70cae0735 (diff)
Fix DeACSM import for PDF files
Diffstat (limited to 'DeDRM_plugin')
-rw-r--r--DeDRM_plugin/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/DeDRM_plugin/__init__.py b/DeDRM_plugin/__init__.py
index 13a9190..9204600 100644
--- a/DeDRM_plugin/__init__.py
+++ b/DeDRM_plugin/__init__.py
@@ -733,10 +733,10 @@ class DeDRM(FileTypePlugin):
if newkey is not None:
if codecs.encode(newkey, 'hex').decode('ascii') not in dedrmprefs['adeptkeys'].values():
print("{0} v{1}: Found new key '{2}' in DeACSM plugin".format(PLUGIN_NAME, PLUGIN_VERSION, newname))
- newkeys.append(keyvalue)
+ newkeys.append(newkey)
newnames.append(newname)
except:
- pass
+ traceback.print_exc()
if len(newkeys) > 0:
try:
@@ -770,7 +770,7 @@ class DeDRM(FileTypePlugin):
print("{0} v{1}: Failed to decrypt with new default key after {2:.1f} seconds".format(PLUGIN_NAME, PLUGIN_VERSION,time.time()-self.starttime))
except Exception as e:
- pass
+ traceback.print_exc()
# Unable to decrypt the PDF with any of the existing keys. Is it a B&N PDF?