]> git.llucax.com Git - software/pymin.git/commitdiff
Inherit errors from HandlerError.
authorFede <fedux@linux-kt9u.site>
Wed, 17 Oct 2007 23:07:04 +0000 (20:07 -0300)
committerFede <fedux@linux-kt9u.site>
Wed, 17 Oct 2007 23:07:04 +0000 (20:07 -0300)
pymin/services/ip/__init__.py
pymin/services/ppp/__init__.py

index 1f3aeefaec267790c35ee7958f2b759ccf3ef940..ee6ed3357be679e4c5bb2eee70e6b4e7b5c7182c 100644 (file)
@@ -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
index 0445df1c8146ad7f42a8b725b100d16d0df7b3f8..bd82f1948fed8f783668284ada58eb9e160187ce 100644 (file)
@@ -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()