forked from platypush/platypush
Skip base Response type
This commit is contained in:
parent
27f847eac6
commit
fc949ed9f1
1 changed files with 3 additions and 0 deletions
|
@ -245,6 +245,9 @@ class InspectPlugin(Plugin):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for _, obj in inspect.getmembers(module):
|
for _, obj in inspect.getmembers(module):
|
||||||
|
if type(obj) == Response:
|
||||||
|
continue
|
||||||
|
|
||||||
if inspect.isclass(obj) and issubclass(obj, Response):
|
if inspect.isclass(obj) and issubclass(obj, Response):
|
||||||
response = ResponseModel(response=obj, html_doc=self._html_doc)
|
response = ResponseModel(response=obj, html_doc=self._html_doc)
|
||||||
if response.package not in self._responses:
|
if response.package not in self._responses:
|
||||||
|
|
Loading…
Reference in a new issue