Skip to content

Commit

Permalink
add return value
Browse files Browse the repository at this point in the history
  • Loading branch information
jfbourdon authored and nyalldawson committed Oct 22, 2021
1 parent c6008b7 commit dfe2638
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/utils.py
Expand Up @@ -581,11 +581,12 @@ def reloadPlugin(packageName: str):
""" unload and start again a plugin """
global active_plugins
if packageName not in active_plugins:
return # it's not active
return False # it's not active

unloadPlugin(packageName)
loadPlugin(packageName)
startPlugin(packageName)
started = startPlugin(packageName)
return started


def showPluginHelp(packageName: str = None, filename: str = "index", section: str = ""):
Expand Down

0 comments on commit dfe2638

Please sign in to comment.