From a9fb82d3b95911a1091eb265d5cb3b3815a0957c Mon Sep 17 00:00:00 2001 From: Matt Turnbull Date: Fri, 28 Aug 2009 07:49:21 +0100 Subject: [PATCH] even more like eric's --- pyfpdb/Exceptions.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyfpdb/Exceptions.py b/pyfpdb/Exceptions.py index fb386ac3..45ba2b07 100644 --- a/pyfpdb/Exceptions.py +++ b/pyfpdb/Exceptions.py @@ -1,9 +1,6 @@ class FpdbError(Exception): - def __init__(self, value): - self.value = value - def __str__(self): - return repr(self.value) + pass class FpdbParseError(FpdbError): def __init__(self,value='',hid=''): @@ -16,5 +13,8 @@ class FpdbParseError(FpdbError): return repr(self.value) class DuplicateError(FpdbError): - pass + def __init__(self, value): + self.value = value + def __str__(self): + return repr(self.value)