Skip to content

Commit 540b6eb

Browse files
committed
Remove dead code from pre_install()
1 parent 15441c4 commit 540b6eb

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/senaite/core/setuphandlers.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -504,14 +504,7 @@ def pre_install(portal_setup):
504504
505505
:param portal_setup: SetupTool
506506
"""
507-
logger.info("SENAITE CORE pre-install handler [BEGIN]")
508-
509-
# https://docs.plone.org/develop/addons/components/genericsetup.html#custom-installer-code-setuphandlers-py
510-
profile_id = PROFILE_ID
511-
context = portal_setup._getImportContext(profile_id)
512-
portal = context.getSite()
513-
514-
logger.info("SENAITE CORE pre-install handler [DONE]")
507+
logger.info("SENAITE CORE pre-install handler")
515508

516509

517510
def post_install(portal_setup):

0 commit comments

Comments
 (0)