diff --git a/product/ERP5/Document/WebSection.py b/product/ERP5/Document/WebSection.py index 8ce1c5ca40490df584e6bd202a3135d1725a49db..e324ca7a3b5c44b790627f6c23e07b4d5b6ce78f 100644 --- a/product/ERP5/Document/WebSection.py +++ b/product/ERP5/Document/WebSection.py @@ -118,7 +118,7 @@ class WebSection(Domain, PermanentURLMixIn): document = PermanentURLMixIn.__bobo_traverse__(self, request, name) except NotFound: not_found_page_ref = self.getLayoutProperty('layout_not_found_page_reference') - if not_found_page_ref is not None: + if not_found_page_ref: document = PermanentURLMixIn.getDocumentValue(self, name=not_found_page_ref) if document is None: # if no document found, fallback on default page template