Skip to content
Permalink
Browse files

refactor: rename variable to avoid reassignment

  • Loading branch information...
etienne-napoleone committed Dec 20, 2018
1 parent b725833 commit 04291a6105b47362e2b736d8dac6c0557e01b53e
Showing with 3 additions and 3 deletions.
  1. +3 −3 goutte/main.py
@@ -42,9 +42,9 @@ def _load_config(config: click.File) -> Dict[str, Dict]:
try:
# TODO check minimum validity (retention)
log.debug('Loading config from {}'.format(config.name))
config = toml.load(config)
assert config['retention']
return config
conf = toml.load(config)
assert conf['retention']
return conf
except TypeError as e:
log.critical('Could not read conf {}: {}'.format(config.name, e))
sys.exit(1)

0 comments on commit 04291a6

Please sign in to comment.
You can’t perform that action at this time.