def export(self, opts): if opts.path is None: raise Exception("You must provide the path to the output folder") export = Export(opts.force) export.export_host(self._entity, opts.path)