Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Catch the correct exception.

  • Loading branch information...
commit 667e1d7a90de308b509540fbc7b04a09727e641d 1 parent 291fd57
@aaugustin aaugustin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  releases/views.py
View
2  releases/views.py
@@ -19,7 +19,7 @@ def index(request):
preview = (Release.objects.preview()
.filter(minor__gt=current.minor)
.order_by('-minor', '-micro', '-status', '-iteration'))[0]
- except Release.DoesNotExist:
+ except IndexError:
preview_version = None
preview_kind = None
else:

0 comments on commit 667e1d7

Please sign in to comment.
Something went wrong with that request. Please try again.