Yes, it will work too. You could also initialize self.exception right at
the beginning of the __init__ method, so that you are sure that it is
defined, even if you introduce other cases later.
Olivier
--- brlapi.pyx.OLD 2010-02-08 11:53:37.0 +0100
+++ brlapi.pyx 2010-02-08 11:53:56.
Package: python-brlapi
Version: 4.1-4
Severity: important
Description of the problem:
>ipython
In [1]:import brlapi
In [2]:b=brlapi.Connection()
---
ConnectionError Traceback (most recent call last
2 matches
Mail list logo