[or-cvs] r19358: {projects} Fixed some minor bugs (Mostly error handling) (projects/gettor)
kaner at seul.org
kaner at seul.org
Tue Apr 21 19:13:41 UTC 2009
Author: kaner
Date: 2009-04-21 15:13:41 -0400 (Tue, 21 Apr 2009)
New Revision: 19358
Modified:
projects/gettor/GetTor.py
Log:
Fixed some minor bugs (Mostly error handling)
Modified: projects/gettor/GetTor.py
===================================================================
--- projects/gettor/GetTor.py 2009-04-21 11:55:09 UTC (rev 19357)
+++ projects/gettor/GetTor.py 2009-04-21 19:13:41 UTC (rev 19358)
@@ -107,7 +107,7 @@
return False
localeDir = config.getLocaleDir()
if not os.path.isdir(localeDir):
- log.error("Sorry, %s is not a directory." % distDir)
+ log.error("Sorry, %s is not a directory." % localeDir)
return False
for root, dirs, files in os.walk(localeSrcdir):
@@ -127,10 +127,10 @@
log.error("Installing .mo files failed.")
return False
else:
- log.error("Not a directory: " % targetDir)
+ log.error("Not a directory: %s" % targetDir)
return False
- except Exception, e:
- log.error("Error accessing translation files: " % e)
+ except Exception:
+ log.error("Error accessing translation files.")
return False
if hasDirs is None:
log.errpr("Empty locale dir: " % localeSrcdir)
@@ -228,12 +228,10 @@
If you require any additional help, please feel free to contact a human
at the following support email address: tor-assistants at torproject.org
- """)
-
+ """)
status = resp.sendGenericMessage(srcEmail, replyTo, message)
if status != True:
log.info(_("Failed to send delay alert"))
-
status = resp.sendPackage(srcEmail, replyTo, packageList[package])
if status != True:
log.info(_("Failed at attempt to send package: %s") % str(package))
More information about the tor-commits
mailing list