0001-python-do-not-fail-displaying-a-non-C-error-fixes-38.patch
bindings/python/lang.py | ||
---|---|---|
168 | 168 |
raise exception |
169 | 169 | |
170 | 170 |
def __str__(self): |
171 |
return '<lasso.%s(%s): %s>' % (self.__class__.__name__, self.code, _lasso.strError(self.code)) |
|
171 |
if self.code: |
|
172 |
return '<lasso.%s(%s): %s>' % (self.__class__.__name__, self.code, _lasso.strError(self.code)) |
|
173 |
else: |
|
174 |
return '<lasso.%s: %s>' % (self.__class__.__name__, self.message) |
|
172 | 175 | |
173 | 176 |
def __getitem__(self, i): |
174 | 177 |
# compatibility with SWIG bindings |
175 |
- |