summaryrefslogtreecommitdiffstats
path: root/main/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py
index 014464f..42f8e89 100644
--- a/main/models.py
+++ b/main/models.py
@@ -143,6 +143,8 @@ class Package(models.Model):
data = b64decode(self.pgp_signature)
except TypeError:
return None
+ if not data:
+ return None
data = BinaryData(data)
packets = list(data.packets())
return packets[0]