From 1a52cf9a3d5d6b8c6159a53df6f5e57ad34066ed Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Mon, 20 Feb 2017 21:59:38 -0800 Subject: [PATCH] Fixed lint --- graphene/utils/module_loading.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphene/utils/module_loading.py b/graphene/utils/module_loading.py index 8312cfb0..cbbbb39d 100644 --- a/graphene/utils/module_loading.py +++ b/graphene/utils/module_loading.py @@ -9,14 +9,14 @@ def import_string(dotted_path): """ try: module_path, class_name = dotted_path.rsplit('.', 1) - except ValueError as err: + except ValueError: raise ImportError("%s doesn't look like a module path" % dotted_path) module = import_module(module_path) try: return getattr(module, class_name) - except AttributeError as err: + except AttributeError: raise ImportError('Module "%s" does not define a "%s" attribute/class' % ( module_path, class_name) )