We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5cc0a8 commit 1a52cf9Copy full SHA for 1a52cf9
graphene/utils/module_loading.py
@@ -9,14 +9,14 @@ def import_string(dotted_path):
9
"""
10
try:
11
module_path, class_name = dotted_path.rsplit('.', 1)
12
- except ValueError as err:
+ except ValueError:
13
raise ImportError("%s doesn't look like a module path" % dotted_path)
14
15
module = import_module(module_path)
16
17
18
return getattr(module, class_name)
19
- except AttributeError as err:
+ except AttributeError:
20
raise ImportError('Module "%s" does not define a "%s" attribute/class' % (
21
module_path, class_name)
22
)
0 commit comments