diff --git a/src/senaite/storage/subscribers/upgrade.py b/src/senaite/storage/subscribers/upgrade.py index 5d434af..fd29b91 100644 --- a/src/senaite/storage/subscribers/upgrade.py +++ b/src/senaite/storage/subscribers/upgrade.py @@ -1,10 +1,16 @@ # -*- coding: utf-8 -*- +from senaite.storage import is_installed +from senaite.storage import logger from senaite.storage.setuphandlers import post_install def afterUpgradeStepHandler(event): """Event handler that is executed after running an upgrade step of senaite.core """ + if not is_installed(): + return + logger.info("Run senaite.storage.afterUpgradeStepHandler ...") setup = event.context post_install(setup) + logger.info("Run senaite.storage.afterUpgradeStepHandler [DONE]")