Skip to content

Commit 36bc875

Browse files
committed
fix setting upate
1 parent 6a33d1a commit 36bc875

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/wechaty/plugin.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -642,10 +642,6 @@ async def get_plugin_setting() -> Response:
642642
return error(f'plugin<{name}> not exist ...')
643643
plugin: WechatyPlugin = self._plugins[name]
644644

645-
config_entry = 'get_setting'
646-
if not hasattr(plugin, config_entry):
647-
return error(f'this plugin<{name}> contains no setting ...')
648-
649645
return success(plugin.setting)
650646

651647
@app.route('/plugins/setting', methods=['POST', 'PUT'])

0 commit comments

Comments
 (0)