summaryrefslogtreecommitdiff
path: root/patchtracker/DiffGzHandler.py
diff options
context:
space:
mode:
Diffstat (limited to 'patchtracker/DiffGzHandler.py')
-rw-r--r--patchtracker/DiffGzHandler.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/patchtracker/DiffGzHandler.py b/patchtracker/DiffGzHandler.py
index 1f1c1de..96d862b 100644
--- a/patchtracker/DiffGzHandler.py
+++ b/patchtracker/DiffGzHandler.py
@@ -3,6 +3,9 @@ import sys
import os
from Patch import Patch, PatchSeries
+class DiffGzException(Exception):
+ pass
+
class DiffGzHandler:
diff = None
def __init__(self,fname):
@@ -21,7 +24,7 @@ class DiffGzHandler:
p = Patch(o)
err = e.read()
if len(err):
- raise Exception("filterdiff gave errors:",err)
+ raise DiffGzException("filterdiff gave errors: "+err)
return p
def debiandir(self):