allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject git commit: [#5230] Remove extraneous exception code
Date Tue, 06 Nov 2012 21:35:56 GMT
Updated Branches:
  refs/heads/tv/5230 2dde6dc7b -> 15bc2699c


[#5230] Remove extraneous exception code


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/15bc2699
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/15bc2699
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/15bc2699

Branch: refs/heads/tv/5230
Commit: 15bc2699ce679624807000c068e92528cd955887
Parents: 2dde6dc
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Tue Nov 6 21:35:37 2012 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Tue Nov 6 21:35:37 2012 +0000

----------------------------------------------------------------------
 ForgeGit/forgegit/model/git_repo.py |    3 +--
 ForgeHg/forgehg/model/hg.py         |    3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/15bc2699/ForgeGit/forgegit/model/git_repo.py
----------------------------------------------------------------------
diff --git a/ForgeGit/forgegit/model/git_repo.py b/ForgeGit/forgegit/model/git_repo.py
index 56b7e80..2244baa 100644
--- a/ForgeGit/forgegit/model/git_repo.py
+++ b/ForgeGit/forgegit/model/git_repo.py
@@ -3,7 +3,6 @@ import shutil
 import string
 import logging
 import random
-import traceback
 from collections import namedtuple
 from datetime import datetime
 from glob import glob
@@ -110,7 +109,7 @@ class GitImplementation(M.RepositoryImplementation):
         except:
             self._repo.status = 'ready'
             session(self._repo).flush(self._repo)
-            raise Exception(traceback.format_exc())
+            raise
         log.info('... %r cloned', self._repo)
         g.post_event('repo_cloned', source_url)
         self._repo.refresh(notify=False)

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/15bc2699/ForgeHg/forgehg/model/hg.py
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/model/hg.py b/ForgeHg/forgehg/model/hg.py
index 6aed90a..fc39d42 100644
--- a/ForgeHg/forgehg/model/hg.py
+++ b/ForgeHg/forgehg/model/hg.py
@@ -2,7 +2,6 @@ import os
 import re
 import shutil
 import logging
-import traceback
 from binascii import b2a_hex
 from datetime import datetime
 from cStringIO import StringIO
@@ -97,7 +96,7 @@ class HgImplementation(M.RepositoryImplementation):
         except:
             self._repo.status = 'ready'
             session(self._repo).flush(self._repo)
-            raise Exception(traceback.format_exc())
+            raise
         log.info('... %r cloned', self._repo)
         g.post_event('repo_cloned', source_url)
         self._repo.refresh(notify=False)


Mime
View raw message