summaryrefslogtreecommitdiffstats
path: root/pykolab/setup/components.py
diff options
context:
space:
mode:
authorChristoph Erhardt <kolab@sicherha.de>2021-06-04 16:53:52 +0200
committerChristoph Erhardt <kolab@sicherha.de>2022-01-10 20:46:43 +0100
commit991255eaa314b51e2dd586460311d4633a56eb86 (patch)
treee3e711046511d69fabdac2c67e66df4834a1e763 /pykolab/setup/components.py
parentd0579b7e5da331576b80b9d35eb62994075bc939 (diff)
downloadpykolab-991255eaa314b51e2dd586460311d4633a56eb86.tar.gz
[Python 3] Use new exception syntax
Summary: The new syntax was introduced in Python 2.6; the old syntax was deprecated in Python 3.0. Reviewers: machniak, mollekopf Reviewed By: mollekopf Differential Revision: https://git.kolab.org/D3232
Diffstat (limited to 'pykolab/setup/components.py')
-rw-r--r--pykolab/setup/components.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/setup/components.py b/pykolab/setup/components.py
index 8e9f346..5cc7b58 100644
--- a/pykolab/setup/components.py
+++ b/pykolab/setup/components.py
@@ -130,14 +130,14 @@ def cli_options_from_component(component_name, *args, **kw):
try:
exec("from %s.setup_%s import cli_options as %s_%s_cli_options" % (group,component_name,group,component_name))
exec("%s_%s_cli_options()" % (group,component_name))
- except ImportError, e:
+ except ImportError:
pass
else:
try:
exec("from setup_%s import cli_options as %s_cli_options" % (component_name,component_name))
exec("%s_cli_options()" % (component_name))
- except ImportError, e:
+ except ImportError:
pass
components_included_in_cli.append(component_name)