From e9ef60f8e52ebcbbecc746a96ee87e9e245e03f3 Mon Sep 17 00:00:00 2001 From: Leo Huckvale Date: Thu, 14 Jul 2016 15:32:06 +0100 Subject: [PATCH] Remove unused local variable for flake8 check --- sphinx/util/inspect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/util/inspect.py b/sphinx/util/inspect.py index 91ae83d83..cda4c65b1 100644 --- a/sphinx/util/inspect.py +++ b/sphinx/util/inspect.py @@ -116,7 +116,7 @@ def safe_getattr(obj, name, *defargs): try: obj_dict = obj.__dict__ - except Exception as exc: + except Exception: obj_dict = {} if name in obj_dict: