Permalink
Browse files
Handle when no versions exist.
- Loading branch information...
Showing
with
3 additions
and
0 deletions.
-
+3
−0
pages/source/_exts/doctrinedownloads.py
|
@@ -78,6 +78,9 @@ def visit_doctrinedownloads_html(self, node): |
|
|
self.body.append(self.starttag(node, 'div', CLASS='version'))
|
|
|
versiondata = node['project']['versions'][version];
|
|
|
|
|
|
+ if not version:
|
|
|
+ continue
|
|
|
+
|
|
|
if 'stability' in versiondata:
|
|
|
stability = versiondata['stability']
|
|
|
else:
|
|
|
0 comments on commit
4d986ad