Skip to content
Snippets Groups Projects
Commit a703be42 authored by Renaud Le Gac's avatar Renaud Le Gac
Browse files

Polish the function get_plugin_path: return None when the plugin is not found.

parent e4423172
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ def get_plugin_path(environment, plugin_name): ...@@ -64,7 +64,7 @@ def get_plugin_path(environment, plugin_name):
The dictionary environment contains the keys request, response, The dictionary environment contains the keys request, response,
session, plugins, .... session, plugins, ....
Raise the exception HTTP(500) if the plugin is not found. Return None if the plugin is not found.
""" """
server_path, client_path = get_reference_paths(environment) server_path, client_path = get_reference_paths(environment)
...@@ -77,7 +77,7 @@ def get_plugin_path(environment, plugin_name): ...@@ -77,7 +77,7 @@ def get_plugin_path(environment, plugin_name):
return os.path.join(client_path, 'static', el) return os.path.join(client_path, 'static', el)
# Nothing found # Nothing found
raise HTTP(500, 'The plugin %s is not install !' % plugin_name) return None
def get_js_files(server_path, client_path, directory): def get_js_files(server_path, client_path, directory):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment