From a72d368c4e6fbbf4aafbd2ccdfbb1725c3227d76 Mon Sep 17 00:00:00 2001 From: Chen Hanxiao Date: Thu, 30 Mar 2017 22:43:44 +0800 Subject: [PATCH] nodedev: remove useless exception instance Commit f341352cdadeadedab1579d1759ed1387aa28c75 removed redundant error string, so the instance 'e' in exception is useless. Just delete it. Signed-off-by: Chen Hanxiao --- virtinst/nodedev.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtinst/nodedev.py b/virtinst/nodedev.py index f82ba351e..c8f5adc02 100644 --- a/virtinst/nodedev.py +++ b/virtinst/nodedev.py @@ -84,7 +84,7 @@ class NodeDevice(XMLBuilder): try: return _AddressStringToNodedev(conn, idstring) - except Exception, e: + except Exception: logging.debug("Error looking up nodedev from idstring=%s", idstring, exc_info=True) raise