[#7] 404 on last job if no jobs yet
This commit is contained in:
parent
34ae6be689
commit
457b8d5988
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue