def import_entity(self, opts): if opts.path is None: raise Exception("You must provide the path to the input folder") imp = Import(opts.skip_conflicts, opts.dry_run) imp.import_host(self._parent, opts.path)