[geany/infrastructure] ae6834: Fix string substitution placeholder in exception handlers

Enrico Tröger git-noreply at geany.org
Sun Oct 7 14:15:13 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 14:15:13
Commit:      ae6834e8db05fa16f8ed544dbf4f8befb996d9c7
             https://github.com/geany/infrastructure/commit/ae6834e8db05fa16f8ed544dbf4f8befb996d9c7

Log Message:
-----------
Fix string substitution placeholder in exception handlers

%e should have been %s, oops.


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

Modified: scripts/git2irc/git2irc.py
4 files changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -89,7 +89,7 @@ def init_config(conf_filename):
     # catch-all: will be for invalid config file/section/option, unknown
     # filename, etc
     except Exception as e:
-        logger.warn(u"Exception reading config file '%s': %e", conf_filename,
+        logger.warn(u"Exception reading config file '%s': %s", conf_filename,
             e, exc_info=True)
 
 
@@ -143,7 +143,7 @@ def shorten_url(long_url):
             logger.warn(u'Error shortening URL: %s: %s' % (
                 resp_dict['errorCode'], resp_dict['errorMessage']))
     except Exception as e:  # generally, urllib2.URLError
-        logger.warn(u'Exception shortening URL: %e', e, exc_info=True)
+        logger.warn(u'Exception shortening URL: %s', e, exc_info=True)
     return short_url
 
 



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


More information about the Commits mailing list