summaryrefslogtreecommitdiff
path: root/releng/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'releng/models.py')
-rw-r--r--releng/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/releng/models.py b/releng/models.py
index a0dd57aa..19040905 100644
--- a/releng/models.py
+++ b/releng/models.py
@@ -160,6 +160,8 @@ class Release(models.Model):
data = b64decode(self.torrent_data)
except TypeError:
return None
+ if not data:
+ return None
data = bdecode(data)
# transform the data into a template-friendly dict
info = data.get('info', {})