diff --git a/scripts/west_commands/blobs.py b/scripts/west_commands/blobs.py index 3fa7382c38b..5336b835827 100644 --- a/scripts/west_commands/blobs.py +++ b/scripts/west_commands/blobs.py @@ -114,7 +114,7 @@ class Blobs(WestCommand): def list(self, args): blobs = self.get_blobs(args) - fmt = getattr(args, 'Namespace.format', self.DEFAULT_LIST_FMT) + fmt = args.format or self.DEFAULT_LIST_FMT for blob in blobs: log.inf(fmt.format(**blob))