From: Fede Date: Wed, 17 Oct 2007 23:07:04 +0000 (-0300) Subject: Inherit errors from HandlerError. X-Git-Url: https://git.llucax.com/software/pymin.git/commitdiff_plain/0ac91a6f554c188a1a92ac4bbe97fa750fe9ea06?ds=sidebyside Inherit errors from HandlerError. --- 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()