Use of (preferred?) format string notation.

This commit is contained in:
Grant Bowman 2004-08-23 05:33:59 +00:00
parent b77d6d0afc
commit 181f9899b4
1 changed files with 2 additions and 2 deletions

View File

@ -272,8 +272,8 @@ class Misc(callbacks.Privmsg):
try:
return s.split(None, 3)[2]
except:
self.log.exception('Couldn\'t get id string from module '
'%s: %r', n, s)
self.log.exception('Getting %s module\'s revision number '
'from __revision__ string: %s'%(n, s))
if hasattr(module, '__revision__'):
if 'supybot' in module.__file__:
return getVersion(module.__revision__, name)