Skip to content
Snippets Groups Projects
Commit bd9dbdf7 authored by Matt Tuchfarber's avatar Matt Tuchfarber
Browse files

Syntax fix

parent e5b8f287
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ def get_plugins_view_context(project_type, view_name, existing_context={}):
module_path, _, name = context_function_path.rpartition('.')
try:
module = import_module(module_path)
except ImportError, ModuleNotFoundError:
except (ImportError, ModuleNotFoundError):
log.exception("Failed to import %s plugin when creating %s context", module_path, view_name)
continue
context_function = getattr(module, name, None)
......
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