[#7] 404 on last job if no jobs yet

This commit is contained in:
amercader 2013-02-25 12:49:14 +00:00
parent 34ae6be689
commit 457b8d5988
1 changed files with 3 additions and 0 deletions

View File

@ -348,6 +348,9 @@ class ViewController(BaseController):
source_dict = self._get_source_for_job(source)
if not source_dict['status']['last_job']:
abort(404, _('No jobs yet for this source'))
return self.show_job(source_dict['status']['last_job']['id'],
source_dict=source_dict,
is_last=True)