diff --git a/rbac/management/management/commands/seeds.py b/rbac/management/management/commands/seeds.py index 8c6dc9933..22326bc48 100644 --- a/rbac/management/management/commands/seeds.py +++ b/rbac/management/management/commands/seeds.py @@ -53,4 +53,8 @@ def handle(self, *args, **options): group_seeding() logger.info("*** Group seeding completed. ***\n") - purge_cache() + try: + purge_cache() + except Exception as e: + logger.error(f"An exception occurred during purge cache: {e}") + raise e