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.
Hello,
Thanks for the report. I'd rather fix it the attached way, what do you
think?
Samuel
Index: Bindings/Python/brlapi.pyx
===
--- Bindings/Python/brlapi.pyx (révision 4972)
+++ Bindings/Python/brlapi.pyx (copie de travail)
@@
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
3 matches
Mail list logo