Fixed code smell 'Unused local variables should be removed'.

This commit is contained in:
Yogesh Mahajan
2020-07-24 12:15:29 +05:30
committed by Akshay Joshi
parent 1fbf298d30
commit dd27e08a98
14 changed files with 16 additions and 16 deletions

View File

@@ -485,7 +485,7 @@ def register_dialect(name, dialect='excel', **fmtparams):
try:
Dialect.validate(dialect)
except Exception as e:
except Exception:
raise TypeError('dialect is invalid')
assert name not in _dialect_registry