diff --git a/product/ERP5Banking/tests/TestERP5BankingMixin.py b/product/ERP5Banking/tests/TestERP5BankingMixin.py index 636db6f346303d9144d90221b3aef6fdc64463cb..5ea8395e36cb00e80ab4008075db7bd2e8463f5f 100644 --- a/product/ERP5Banking/tests/TestERP5BankingMixin.py +++ b/product/ERP5Banking/tests/TestERP5BankingMixin.py @@ -1150,7 +1150,12 @@ class TestERP5BankingMixin: """ portal = self.getPortalObject() portal.portal_caches.clearAllCache() - portal.portal_workflow.refreshWorklistCache() + try: + portal.portal_workflow.refreshWorklistCache() + except AttributeError: + import sys + LOG('TestEERP5Banking.checkWorklist', 0, 'unable to find everything to refresh', + error=sys.exc_info()) portal_type = document.getPortalType() state = document.getSimulationState() workflow_id = '%s_workflow' % portal_type.lower().replace(' ', '_')