From bd9dbdf7de090c10388252b5cdce6f3e7676b0bb Mon Sep 17 00:00:00 2001 From: Matt Tuchfarber Date: Wed, 11 Mar 2020 15:17:59 -0400 Subject: [PATCH] Syntax fix --- openedx/core/djangoapps/plugins/plugin_contexts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/plugins/plugin_contexts.py b/openedx/core/djangoapps/plugins/plugin_contexts.py index 8e0b46507b..707406c369 100644 --- a/openedx/core/djangoapps/plugins/plugin_contexts.py +++ b/openedx/core/djangoapps/plugins/plugin_contexts.py @@ -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)