diff mercurial/transaction.py @ 1073:7b35a980b982

[PATCH] raise exceptions with Exception subclasses Fixed the patch. Using Exception subclasses. (tweaked by mpm)
author Bart Trojanowski <bart@jukie.net>
date Fri, 26 Aug 2005 19:08:25 -0700
parents 6d5a62a549fa
children cf9a1233738a
line wrap: on
line diff
--- a/mercurial/transaction.py
+++ b/mercurial/transaction.py
@@ -20,7 +20,7 @@ class transaction:
 
         # abort here if the journal already exists
         if os.path.exists(journal):
-            raise "journal already exists - run hg recover"
+            raise AssertionError("journal already exists - run hg recover")
 
         self.report = report
         self.opener = opener