Commit 252bda8d authored by Kevin Deldycke's avatar Kevin Deldycke

Change exception to AttributeError


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4525 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 101a6a8b
...@@ -171,11 +171,11 @@ class BaobabConduit(ERP5Conduit): ...@@ -171,11 +171,11 @@ class BaobabConduit(ERP5Conduit):
# Modules below are not always required # Modules below are not always required
# (it depends of the nature of objects you want to synchronize) # (it depends of the nature of objects you want to synchronize)
try: cash_inventory_module = object.cash_inventory_module try: cash_inventory_module = object.cash_inventory_module
except KeyError: cash_inventory_module = None except AttributeError: cash_inventory_module = None
try: bank_account_inventory_module = object.bank_account_inventory_module try: bank_account_inventory_module = object.bank_account_inventory_module
except KeyError: bank_account_inventory_module = None except AttributeError: bank_account_inventory_module = None
try: currency_cash_module = object.currency_cash_module try: currency_cash_module = object.currency_cash_module
except KeyError: currency_cash_module = None except AttributeError: currency_cash_module = None
subobject = None subobject = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment