[geany/infrastructure] 3a6678: Fix wrong variable name when reading config values

Enrico Tröger git-noreply at geany.org
Sun Oct 7 13:44:31 UTC 2012


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Sun, 07 Oct 2012 13:44:31
Commit:      3a6678f1302a07e9884600ea0f666009f0ec9a08
             https://github.com/geany/infrastructure/commit/3a6678f1302a07e9884600ea0f666009f0ec9a08

Log Message:
-----------
Fix wrong variable name when reading config values

That tricky typo caused the URL shortening to not work ever.


Modified Paths:
--------------
    scripts/git2irc/git2irc.py

Modified: scripts/git2irc/git2irc.py
6 files changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -82,9 +82,9 @@ def init_config(conf_filename):
         config['irc']['channel'] = conf.get('irc', 'channel')
         config['irc']['host'] = conf.get('irc', 'host')
         config['irc']['port'] = int(conf.get('irc', 'port'))
-        config['shortener']['url'] = config.get('shortener', 'url')
-        config['shortener']['login'] = config.get('shortener', 'login')
-        config['shortener']['key'] = config.get('shortener', 'key')
+        config['shortener']['url'] = conf.get('shortener', 'url')
+        config['shortener']['login'] = conf.get('shortener', 'login')
+        config['shortener']['key'] = conf.get('shortener', 'key')
         logger.debug('Read configuration dict: %s' % config)
     # catch-all: will be for invalid config file/section/option, unknown
     # filename, etc



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).


More information about the Commits mailing list