From ffe43e1f22b5a8f19746d4ea4f1d284579d2073f Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 20 Sep 2022 21:56:25 +0300 Subject: [PATCH] scripts: waifulib: fix error reporting in zip.py --- scripts/waifulib/zip.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/waifulib/zip.py b/scripts/waifulib/zip.py index 1e4efe72..6e903ba7 100644 --- a/scripts/waifulib/zip.py +++ b/scripts/waifulib/zip.py @@ -31,15 +31,15 @@ class ziparchive(Task.Task): def create_zip_archive(self): compresslevel = getattr(self, 'compresslevel', 6) # 6 is zip default if compresslevel < 0 or compresslevel > 9: - self.fatal('Invalid compress level') + self.bld.fatal('Invalid compress level') files = getattr(self, 'files', None) if not files: - self.fatal('No files to archive') + self.bld.fatal('No files to archive') relative_to = getattr(self, 'relative_to', None) if not relative_to: - self.fatal('No relative directory supplied') + self.bld.fatal('No relative directory supplied') self.path.get_bld().mkdir() target = self.path.get_bld().make_node(self.name)