summaryrefslogtreecommitdiff
path: root/main/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/main/models.py b/main/models.py
index 91f1483b..70872c60 100644
--- a/main/models.py
+++ b/main/models.py
@@ -1,4 +1,3 @@
-from base64 import b64decode
from datetime import datetime
from itertools import groupby
from pgpdump import BinaryData
@@ -141,13 +140,9 @@ class Package(models.Model):
@property
def signature(self):
- try:
- data = b64decode(self.pgp_signature.encode('utf-8'))
- except TypeError:
- return None
- if not data:
+ if not self.signature_bytes:
return None
- data = BinaryData(data)
+ data = BinaryData(self.signature_bytes)
packets = list(data.packets())
return packets[0]