Permalink
Browse files

hashtag error removed

  • Loading branch information...
1 parent 886581e commit 6ffd879794de9194c67a1fd672746ef695d2f8fe @zalun zalun committed Feb 10, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 apps/xpi/views.py
View
2 apps/xpi/views.py
@@ -70,6 +70,8 @@ def prepare_download(r, id_number, revision_number=None):
package__id_number=id_number, package__type='a',
revision_number=revision_number)
hashtag = r.POST.get('hashtag')
+ if not hashtag:
+ return HttpResponseForbidden('Error: Try reload the page')
revision.build_xpi(hashtag=hashtag)
return HttpResponse('{"delayed": true}')

0 comments on commit 6ffd879

Please sign in to comment.