do not fail during fullobj() if the object is not supported by backend
This commit is contained in:
parent
bbcf8c7854
commit
6f46c41743
3 changed files with 28 additions and 12 deletions
|
|
@ -27,9 +27,10 @@ from weboob.tools.misc import to_unicode
|
|||
from weboob.tools.ordereddict import OrderedDict
|
||||
|
||||
|
||||
__all__ = ['UserError', 'FieldNotFound', 'NotAvailable', 'NotLoaded', 'IBaseCap',
|
||||
'Field', 'IntField', 'DecimalField', 'FloatField', 'StringField',
|
||||
'BytesField', 'DateField', 'DeltaField', 'empty', 'CapBaseObject']
|
||||
__all__ = ['UserError', 'FieldNotFound', 'ObjectNotSupported', 'NotAvailable',
|
||||
'NotLoaded', 'IBaseCap', 'Field', 'IntField', 'DecimalField',
|
||||
'FloatField', 'StringField', 'BytesField', 'DateField',
|
||||
'DeltaField', 'empty', 'CapBaseObject']
|
||||
|
||||
|
||||
def empty(value):
|
||||
|
|
@ -50,6 +51,12 @@ class UserError(Exception):
|
|||
"""
|
||||
|
||||
|
||||
class ObjectNotSupported(Exception):
|
||||
"""
|
||||
This object is not supported.
|
||||
"""
|
||||
|
||||
|
||||
class FieldNotFound(Exception):
|
||||
"""
|
||||
A field isn't found.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue