From 0ac91a6f554c188a1a92ac4bbe97fa750fe9ea06 Mon Sep 17 00:00:00 2001 From: Fede Date: Wed, 17 Oct 2007 20:07:04 -0300 Subject: [PATCH] Inherit errors from HandlerError. --- pymin/services/ip/__init__.py | 2 +- pymin/services/ppp/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pymin/services/ip/__init__.py b/pymin/services/ip/__init__.py index 1f3aeef..ee6ed33 100644 --- a/pymin/services/ip/__init__.py +++ b/pymin/services/ip/__init__.py @@ -14,7 +14,7 @@ __ALL__ = ('IpHandler',) # TODO: convertir HopHandler a ComposedSubHandler -class HopError(Error): +class HopError(HandlerError): def __init__(self, hop): self.message = u'Hop error : "%s"' % hop diff --git a/pymin/services/ppp/__init__.py b/pymin/services/ppp/__init__.py index 0445df1..bd82f19 100644 --- a/pymin/services/ppp/__init__.py +++ b/pymin/services/ppp/__init__.py @@ -9,7 +9,7 @@ from pymin.services.util import Restorable, ConfigWriter \ __ALL__ = ('PppHandler',) -class ConnectionError(Error, KeyError): +class ConnectionError(HandlerError, KeyError): r""" ConnectionError(hostname) -> ConnectionError instance @@ -143,4 +143,4 @@ if __name__ == '__main__': p.conn.add('ppptunnel_c','dominio\luca','luca',type='TUNNEL',server='192.168.0.23') p.commit() print p.conn.list() - print p.conn.show() \ No newline at end of file + print p.conn.show() -- 2.43.0