We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49b55b4 commit 2b56a9cCopy full SHA for 2b56a9c
1 file changed
sflock/unpack/pgp.py
@@ -29,6 +29,11 @@ class PGP(Unpacker):
29
META_ENCRYPTED_MESSAGE = "encrypted_message"
30
META_SIGNATURE = "signature"
31
32
+ def handles(self):
33
+ if not super(PGP, self).handles():
34
+ return False
35
+ return "encrypted_message" in self.get_metadata()
36
+
37
def unpack(self, password: str = None, duplicates=None):
38
dirpath = tempfile.mkdtemp()
39
0 commit comments