From 8e7b766955a030ea4f4f439de547d9490979ddfa Mon Sep 17 00:00:00 2001 From: wuzewu Date: Mon, 19 Oct 2020 11:26:32 +0800 Subject: [PATCH] Fix moduleinfo bug --- paddlehub/module/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddlehub/module/module.py b/paddlehub/module/module.py index f52c5179..175605d3 100644 --- a/paddlehub/module/module.py +++ b/paddlehub/module/module.py @@ -122,7 +122,7 @@ class Module(object): if _decorator.func.id != 'moduleinfo': continue - info = {key.arg: key.value.s for key in _decorator.keywords} + info = {key.arg: key.value.s for key in _decorator.keywords if key.arg != 'meta'} return EasyDict(info) else: raise InvalidHubModule(directory) -- GitLab