diff -r 74c077c95937 -r 79eba0dec37c projects/views.py
--- a/projects/views.py Wed Mar 18 11:19:19 2009 -0400
+++ b/projects/views.py Wed Mar 18 11:23:45 2009 -0400
@@ -332,10 +332,10 @@
" pass by the check for correctness" \
" (msgfmt -c). Please run this command" \
" on your system to see the errors."))
- except:
+ except StandardError, e:
logger.debug("Error submiting translation file %s"
- " for %s component" % (filename,
- component.full_name))
+ " for %s component: %r" % (filename,
+ component.full_name, e))
# TODO: Figure out why gettext is not working here
request.user.message_set.create(message = (
"Sorry, an error is causing troubles to send your file."))
diff -r 8b3515610713 -r 74c077c95937 vcs/lib/support/commands.py
--- a/vcs/lib/support/commands.py Tue Mar 17 22:50:08 2009 -0400
+++ b/vcs/lib/support/commands.py Wed Mar 18 11:19:19 2009 -0400
@@ -34,7 +34,7 @@
return kwarglist
-class CommandError(Exception):
+class CommandError(StandardError):
def __init__(self, command, status, stderr=None):
self.stderr = stderr
self.status = status