Skip to content

Commit

Permalink
fix setting upate
Browse files Browse the repository at this point in the history
  • Loading branch information
wj-Mcat committed Aug 1, 2022
1 parent 6a33d1a commit 36bc875
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/wechaty/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,10 +642,6 @@ async def get_plugin_setting() -> Response:
return error(f'plugin<{name}> not exist ...')
plugin: WechatyPlugin = self._plugins[name]

config_entry = 'get_setting'
if not hasattr(plugin, config_entry):
return error(f'this plugin<{name}> contains no setting ...')

return success(plugin.setting)

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

0 comments on commit 36bc875

Please sign in to comment.