Enable F841

F841 detects local variable is assigned to but never used.
This commit fixes the violations and enables F841 in gate.

Change-Id: Ic4dcac2733dfe334009327ac17aa3952cafaa63a
This commit is contained in:
ChangBo Guo(gcb)
2014-06-17 15:56:47 +08:00
parent d613adc434
commit 1db17aaad9
8 changed files with 42 additions and 48 deletions
+1 -1
View File
@@ -434,7 +434,7 @@ class OpenStackImagesShell(object):
with open(schema_file_path, 'w') as f:
f.write(json.dumps(schema.raw()))
except Exception as e:
except Exception:
#NOTE(esheffield) do nothing here, we'll get a message later
#if the schema is missing
pass