This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Handle when no versions exist.

  • Loading branch information...
jwage committed Jan 13, 2013
1 parent 6fca436 commit 4d986ad235830d1ba32cd034f067271d92bfb5fd
Showing with 3 additions and 0 deletions.
  1. +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

Please sign in to comment.