diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-01-21 15:37:56 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-01-21 20:30:19 +0200 |
commit | 75804c013373a614ec038c5ec02b19aeae138b82 (patch) | |
tree | efd5bf41236889feac40441498623b4da7412b1a | |
parent | 832611434405f4efae05d16f15ab9f7b88ae810c (diff) | |
download | ick2-75804c013373a614ec038c5ec02b19aeae138b82.tar.gz |
Fix: handle missing systree blob
-rwxr-xr-x | worker_manager | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/worker_manager b/worker_manager index 9e16d19..3fc3220 100755 --- a/worker_manager +++ b/worker_manager @@ -513,7 +513,13 @@ class SystreePopulator(WorkerBase): return 1 self.make_directory_empty(self.systree_dir) + self.report(b'Downloading systree blob\n') tarball = self._api.download_blob(systree_name) + if tarball is None: + self.report(b'Download failed\n') + return 1 + + self.report(b'Unpacking systree blob\n') self.unpack_systree(tarball, self.systree_dir) self.report(b'Systree has been populated\n') |